File size: 606 Bytes
a657e9e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f551b90
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use the official Python 3.9 image
FROM python:3.9

# Set the working directory to /code
WORKDIR /code

# Copy the requirements file into the container at /code
COPY ./requirements.txt /code/requirements.txt

# Install the dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# Copy the rest of your application code
COPY . .

# Create a writable directory for cache/temporary files if needed (good practice)
RUN mkdir -p /code/cache && chmod 777 /code/cache

# Command to run the application
# Run Gradio directly (compatible with Hugging Face Spaces)
CMD ["python", "app.py"]