Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
|
|
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
RUN apt-get update && apt-get install -y \
|
|
@@ -11,6 +13,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
|
| 12 |
COPY requirements.txt ./
|
| 13 |
COPY src/ ./src/
|
|
|
|
| 14 |
|
| 15 |
RUN pip3 install -r requirements.txt
|
| 16 |
|
|
@@ -18,4 +21,4 @@ EXPOSE 8501
|
|
| 18 |
|
| 19 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 20 |
|
| 21 |
-
ENTRYPOINT ["streamlit", "run", "
|
|
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
| 3 |
+
ENV STREAMLIT_WATCHER_TYPE none
|
| 4 |
+
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 13 |
|
| 14 |
COPY requirements.txt ./
|
| 15 |
COPY src/ ./src/
|
| 16 |
+
COPY . .
|
| 17 |
|
| 18 |
RUN pip3 install -r requirements.txt
|
| 19 |
|
|
|
|
| 21 |
|
| 22 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 23 |
|
| 24 |
+
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|