Flask / Dockerfile
Prabhsimran09's picture
Update Dockerfile
c8eea70 verified
Raw
History Blame Contribute Delete
388 Bytes
# Use official lightweight Python image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy dependencies list and install them
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY app.py .
COPY templates/ templates/
# Expose the port Flask will run on
EXPOSE 7860
# Run the Flask application
CMD ["python", "app.py"]