Spaces:
Sleeping
Sleeping
File size: 443 Bytes
1003b73 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# Use a slim Python image
FROM python:3.10-slim
# Set working directory inside the container
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy all app files to the container
COPY . .
# Expose the port the app will run on (Hugging Face requires 7860)
EXPOSE 7860
# Run the Flask app
CMD ["python", "app.py"]
|