availabili.tf/backend-flask/Dockerfile.dev

20 lines
428 B
Docker
Raw Normal View History

2024-12-10 18:18:40 -08:00
# Use an official Python runtime as a parent image
FROM python:3.12-slim
COPY requirements.txt /
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
WORKDIR /app
# 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"]