File size: 354 Bytes
2ac344c b5a6350 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# Use a base image with Python
FROM python:3.9
# Set the working directory
WORKDIR /app
# Copy all files to the container
COPY . .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
RUN apt-get update && apt-get install -y libgl1
# Expose port (Hugging Face requires port 7860)
EXPOSE 7860
# Run Flask
CMD ["python", "app.py"] |