presidio commited on
Commit
00a618c
·
verified ·
1 Parent(s): f66ec43

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -11,11 +11,15 @@ RUN apt-get update && apt-get install -y \
11
 
12
  WORKDIR /code
13
 
14
- COPY ./requirements.txt /code/requirements.txt
15
- RUN pip3 install --upgrade pip
16
- RUN pip3 install -r requirements.txt
17
- RUN pip3 install https://huggingface.co/spacy/en_core_web_sm/resolve/main/en_core_web_sm-any-py3-none-any.whl
18
- RUN pip3 install https://huggingface.co/spacy/en_core_web_lg/resolve/main/en_core_web_lg-any-py3-none-any.whl
 
 
 
 
19
 
20
  EXPOSE 7860
21
 
@@ -32,4 +36,4 @@ COPY --chown=user . $HOME/app
32
 
33
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
34
 
35
- CMD python -m streamlit run presidio_streamlit.py --server.port=7860 --server.address=0.0.0.0
 
11
 
12
  WORKDIR /code
13
 
14
+
15
+ # Poetry
16
+ RUN pip install --upgrade pip \
17
+ && pip install poetry
18
+
19
+ COPY pyproject.toml poetry.lock /code/
20
+
21
+ RUN poetry install --no-dev
22
+
23
 
24
  EXPOSE 7860
25
 
 
36
 
37
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
38
 
39
+ CMD ["poetry", "run", "python", "-m", "streamlit", "run", "presidio_streamlit.py", "--server.port=7860", "--server.address=0.0.0.0"]