availabili.tf/backend-flask/Dockerfile

20 lines
428 B
Docker
Raw Permalink Normal View History

2024-11-06 20:56:21 -08:00
# Use an official Python runtime as a parent image
2024-12-09 17:03:43 -08:00
FROM python:3.12-slim
2024-11-06 20:56:21 -08:00
COPY requirements.txt /
2024-11-06 20:56:21 -08:00
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
WORKDIR /app
2024-11-06 20:56:21 -08:00
# Expose the Flask development server port
EXPOSE 5000
# Set the Flask environment to development
ENV FLASK_APP=app.py
ENV FLASK_ENV=development
# Command to run the Flask application
CMD ["flask", "run", "--host=0.0.0.0", "--port=5000", "--debug"]