Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- 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
|