Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +10 -6
Dockerfile
CHANGED
@@ -11,11 +11,15 @@ RUN apt-get update && apt-get install -y \
|
|
11 |
|
12 |
WORKDIR /code
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
RUN
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
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"]
|