Skip to content

Commit

Permalink
dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mondoboia committed Dec 5, 2024
1 parent 2dbb808 commit bf57c7c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.11.9-alpine

WORKDIR /app

COPY requirements.txt requirements.txt
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Set environment variables to configure Flask
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
ENV FLASK_ENV=development

# Expose the port your Flask app runs on
EXPOSE 5000

CMD ["flask", "run"]

0 comments on commit bf57c7c

Please sign in to comment.