File size: 533 Bytes
1990456
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.9

WORKDIR /code

# Copy the requirements from the subfolder to the docker container
# (Adjust path if your requirements.txt is in the root)
COPY requirements.txt /code/requirements.txt

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

# Copy all your project files
COPY . .

# Set permissions
RUN mkdir -p /tmp/cache
RUN chmod 777 /tmp/cache
ENV TRANSFORMERS_CACHE=/tmp/cache
RUN chmod +x /code/start.sh

# Run the updated start script
CMD ["/code/start.sh"]