Spaces:
Sleeping
Sleeping
File size: 377 Bytes
4f4924a ce62338 4f4924a ce62338 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# Use official Python image
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the app code and model/tokenizer
COPY . .
# Expose the port Hugging Face expects
EXPOSE 7860
# Run the Flask app with Gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] |