File size: 383 Bytes
7314527 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Use official Python image
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy requirements
COPY requirements.txt /app/
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy all application files
COPY . /app/
# Expose required port for Hugging Face
EXPOSE 7860
# Command to run Flask app
CMD ["python", "app.py"]
|