File size: 510 Bytes
86a19ae
 
 
 
 
 
 
 
 
 
 
 
 
0d451b2
86a19ae
 
 
 
 
 
0d451b2
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Use a lightweight Python base image
FROM python:3.10-slim

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

# Set working directory
WORKDIR /code

# Copy files
COPY . /code/



# Expose port
EXPOSE 7860

# Command to run the app
CMD ["python", "app.py"]

# Install dependencies
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

# Explicitly install huggingface-hub==0.16.4 if not already included in requirements.txt
RUN pip install huggingface-hub==0.16.4