2024-12-31 03:36:06 +00:00
|
|
|
FROM python:3.13-slim-bookworm
|
2023-09-14 21:09:11 +00:00
|
|
|
|
2024-12-31 03:36:06 +00:00
|
|
|
EXPOSE 5000
|
2023-09-14 21:09:11 +00:00
|
|
|
|
|
|
|
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 ./
|
2023-09-14 21:09:11 +00:00
|
|
|
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
|
2023-09-14 21:09:11 +00:00
|
|
|
|
|
|
|
# Set the entrypoint to run the app
|
2024-12-31 03:36:06 +00:00
|
|
|
CMD ["flask", "run", "--port=5000"]
|