Commit
·
22ef630
1
Parent(s):
3b7c80c
update
Browse files- Dockerfile +16 -6
Dockerfile
CHANGED
@@ -55,10 +55,10 @@ COPY --chown=user . $HOME/app/text-remove/lama
|
|
55 |
RUN curl -LJO https://huggingface.co/smartywu/big-lama/resolve/main/big-lama.zip
|
56 |
RUN unzip big-lama.zip
|
57 |
|
58 |
-
#RUN useradd -m -u 1000 user
|
59 |
-
#USER user
|
60 |
-
#ENV HOME /home/user
|
61 |
-
#ENV PATH $HOME/.local/bin:$PATH
|
62 |
|
63 |
# Set the working directory back to the root of the project
|
64 |
WORKDIR $HOME/app/text-remove
|
@@ -70,6 +70,16 @@ RUN chmod 777 $HOME/app/text-remove/test_folder
|
|
70 |
EXPOSE 7860
|
71 |
|
72 |
# Run app.py when the container launches
|
73 |
-
ENTRYPOINT ["streamlit", "run"]
|
74 |
-
CMD ["app.py", "--server.port=7860", "--server.headless
|
75 |
# CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
RUN curl -LJO https://huggingface.co/smartywu/big-lama/resolve/main/big-lama.zip
|
56 |
RUN unzip big-lama.zip
|
57 |
|
58 |
+
# RUN useradd -m -u 1000 user
|
59 |
+
# USER user
|
60 |
+
# ENV HOME /home/user
|
61 |
+
# ENV PATH $HOME/.local/bin:$PATH
|
62 |
|
63 |
# Set the working directory back to the root of the project
|
64 |
WORKDIR $HOME/app/text-remove
|
|
|
70 |
EXPOSE 7860
|
71 |
|
72 |
# Run app.py when the container launches
|
73 |
+
# ENTRYPOINT ["streamlit", "run"]
|
74 |
+
# CMD ["app.py", "--server.port=7860", "--server.headless=true", "--server.enableCORS=false", "--server.enableXsrfProtection=false", "--server.fileWatcherType=none"]
|
75 |
# CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
76 |
+
|
77 |
+
CMD streamlit run app.py \
|
78 |
+
---server.port=7860 \
|
79 |
+
--server.headless true \
|
80 |
+
--server.enableCORS false \
|
81 |
+
--server.enableXsrfProtection false \
|
82 |
+
--server.fileWatcherType none
|
83 |
+
|
84 |
+
|
85 |
+
|