File size: 434 Bytes
6dc4993
 
 
8d565f7
 
 
 
 
 
ba9a4a9
6dc4993
 
 
 
 
 
 
 
 
7de0fbb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.10

WORKDIR /app

USER root 
RUN mkdir -p /root/.cache 
RUN chown -R $USER:$USER /root/.cache 
USER $USER 

RUN mkdir ./texteditor-model
COPY . .

RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y build-essential
RUN pip3 install --upgrade pip setuptools
RUN pip3 install -r requirements.txt
RUN python3 -m spacy download en_core_web_sm
RUN python3 download_dependencies.py

ENTRYPOINT ["python", "app.py"]