presidio commited on
Commit
60ad51d
1 Parent(s): 36cfb3a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ build-essential \
5
+ curl \
6
+ software-properties-common \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ WORKDIR /code
10
+
11
+ COPY ./requirements.txt /code/requirements.txt
12
+
13
+ RUN pip3 install -r requirements.txt
14
+ CMD python -m spacy download en_core_web_sm
15
+ CMD python -m spacy download en_core_web_lg
16
+ EXPOSE 7860
17
+
18
+ COPY . /code
19
+
20
+ HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
21
+
22
+ CMD python -m streamlit run presidio_streamlit.py --server.port=7860 --server.address=0.0.0.0