File size: 602 Bytes
3d4b265
 
 
 
161ba9e
 
 
 
 
 
3d4b265
 
161ba9e
 
 
3d4b265
a175723
3d4b265
 
a175723
 
161ba9e
a175723
 
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
FROM python:3.9

WORKDIR /code

# Create a writable directory for the cache
RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 /.cache

# Set the TRANSFORMERS_CACHE environment variable
ENV TRANSFORMERS_CACHE /.cache/huggingface/hub

COPY ./requirements.txt /code/requirements.txt

RUN pip3 install --upgrade pip

RUN pip3 install -r requirements.txt

# Copy the source code
COPY ./src /code/src

# Change permissions of the history.csv file
RUN chmod 777 /code/src/app/../assets/history.csv

# Run the app
CMD ["streamlit", "run", "src/app/app.py", "--server.port=7860", "--server.address=0.0.0.0"]