Spaces:
Sleeping
Sleeping
upd docker file to hf
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -12,13 +12,16 @@ ENV PATH /home/streamlitapp/venv/bin:$PATH # activating environ
|
|
12 |
|
13 |
RUN /usr/local/bin/python -m pip install --upgrade pip
|
14 |
RUN pip install -r requirements.txt
|
15 |
-
RUN pip install
|
16 |
|
17 |
# ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
|
18 |
|
19 |
COPY --chown=streamlitapp ./nginx.conf /home/streamlitapp/.nginx/nginx.conf
|
20 |
|
21 |
EXPOSE 8080
|
22 |
-
|
|
|
|
|
|
|
23 |
# CMD /bin/bash -c "source /home/streamlitapp/venv/bin/activate && streamlit run home.py"
|
24 |
# CMD ["/bin/bash", "-c", "source /home/streamlitapp/venv/bin/activate && streamlit run home.py"]
|
|
|
12 |
|
13 |
RUN /usr/local/bin/python -m pip install --upgrade pip
|
14 |
RUN pip install -r requirements.txt
|
15 |
+
RUN pip install streamlit==1.27.2
|
16 |
|
17 |
# ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
|
18 |
|
19 |
COPY --chown=streamlitapp ./nginx.conf /home/streamlitapp/.nginx/nginx.conf
|
20 |
|
21 |
EXPOSE 8080
|
22 |
+
|
23 |
+
# CMD streamlit run home.py --server.headless true --server.enableCORS false --server.enableXsrfProtection false --server.fileWatcherType none
|
24 |
+
CMD ["streamlit", "run", "home.py", "--server.headless", "true", "--server.enableCORS", "false", "--server.enableXsrfProtection", "false", "--server.fileWatcherType", "none"]
|
25 |
+
# CMD [ "streamlit", "run", "home.py"]
|
26 |
# CMD /bin/bash -c "source /home/streamlitapp/venv/bin/activate && streamlit run home.py"
|
27 |
# CMD ["/bin/bash", "-c", "source /home/streamlitapp/venv/bin/activate && streamlit run home.py"]
|