Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +20 -2
Dockerfile
CHANGED
|
@@ -15,8 +15,26 @@ COPY src/ ./src/
|
|
| 15 |
|
| 16 |
RUN pip3 install -r requirements.txt
|
| 17 |
|
| 18 |
-
EXPOSE 8501
|
| 19 |
|
| 20 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 21 |
|
| 22 |
-
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
RUN pip3 install -r requirements.txt
|
| 17 |
|
|
|
|
| 18 |
|
| 19 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 20 |
|
| 21 |
+
#ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
# User
|
| 25 |
+
RUN useradd -m -u 1000 user
|
| 26 |
+
USER user
|
| 27 |
+
ENV HOME /home/user
|
| 28 |
+
ENV PATH $HOME/.local/bin:$PATH
|
| 29 |
+
|
| 30 |
+
WORKDIR $HOME
|
| 31 |
+
RUN mkdir app
|
| 32 |
+
WORKDIR $HOME/app
|
| 33 |
+
COPY . $HOME/app
|
| 34 |
+
|
| 35 |
+
EXPOSE 8501
|
| 36 |
+
CMD streamlit run src/streamlit_app.py \
|
| 37 |
+
--server.headless true \
|
| 38 |
+
--server.enableCORS false \
|
| 39 |
+
--server.enableXsrfProtection false \
|
| 40 |
+
--server.fileWatcherType none
|