# Use the official Python 3.10.9 image | |
FROM python:3.10.9 | |
# Set working directory | |
WORKDIR /app | |
# Copy everything into container | |
COPY . . | |
# Install Python dependencies | |
RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
# Expose the Flask port (default 5000, or whatever you use) | |
EXPOSE 5000 | |
# Start the Flask app | |
CMD ["python", "app.py"] | |