File size: 464 Bytes
7e7d8c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use Python 3.9
FROM python:3.9

# Set working directory
WORKDIR /code

# Copy requirements and install
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# Copy all files (videos, py, json) to the container
COPY . .

# Make sure folder permissions are correct
RUN chmod -R 777 /code

# Run the app using Gunicorn on port 7860 (Hugging Face default)
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]