point-median-frontend/Dockerfile

23 lines
447 B
Text
Raw Permalink Normal View History

2024-12-31 03:36:06 +00:00
FROM python:3.13-slim-bookworm
2024-12-31 03:36:06 +00:00
EXPOSE 5000
WORKDIR /app
# Install the app's dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy the app's code
COPY config.py ./
2024-12-31 03:36:06 +00:00
COPY app.py ./
COPY ressources ./ressources
2024-12-31 03:36:06 +00:00
COPY templates ./templates
COPY static ./static
# Set the environment variable for Flask
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
# Set the entrypoint to run the app
2024-12-31 03:36:06 +00:00
CMD ["flask", "run", "--port=5000"]