FROM python:3.9-slim | |
WORKDIR /app | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY . . | |
# Create directories if they don't exist | |
RUN mkdir -p templates static | |
# Expose the port that Flask will run on | |
EXPOSE 7860 | |
# Command to run the Flask app | |
CMD ["python", "app.py"] | |