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
|
|
|
|
2024-11-07 18:12:53 -08:00
|
|
|
COPY requirements.txt /
|
2024-11-06 20:56:21 -08:00
|
|
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
2024-11-07 18:12:53 -08:00
|
|
|
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
|
2024-11-07 18:12:53 -08:00
|
|
|
CMD ["flask", "run", "--host=0.0.0.0", "--port=5000", "--debug"]
|