File size: 459 Bytes
90c438b
 
 
 
bb49f69
90c438b
 
 
bb49f69
 
 
 
 
90c438b
 
bb49f69
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.10

WORKDIR /code

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

# Set up the cache directory for Hugging Face models
ENV TRANSFORMERS_CACHE=/code/.cache
RUN mkdir -p /code/.cache && chmod -R 777 /code/.cache

# Copy the application files
COPY . .

# Start the Flask app with Gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app"]