nguyen-brat
commited on
Commit
•
86e8fc1
1
Parent(s):
6cbb53c
update
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -28,7 +28,7 @@ RUN apt-get update && apt-get install -y \
|
|
28 |
&& apt-get clean
|
29 |
|
30 |
WORKDIR $HOME/app
|
31 |
-
COPY --chown=user . $HOME/app
|
32 |
# Create .streamlit/config.toml file
|
33 |
RUN mkdir -p /app/.streamlit && \
|
34 |
echo "[server]\nenableXsrfProtection = false\nenableCORS = false" > /app/.streamlit/config.toml
|
@@ -38,25 +38,25 @@ RUN git clone https://github.com/nguyen-brat/text-remove.git $HOME/app
|
|
38 |
|
39 |
# Set the working directory to the cloned repo
|
40 |
WORKDIR $HOME/app/text-remove
|
41 |
-
COPY --chown=user . $HOME/app/text-remove
|
42 |
RUN mkdir -p $HOME/app/text-remove/.streamlit && \
|
43 |
echo "[server]\nenableXsrfProtection = false\nenableCORS = false" > $HOME/app/text-remove/.streamlit/config.toml
|
44 |
|
45 |
# Set up Craft
|
46 |
WORKDIR $HOME/app/text-remove/CRAFT-pytorch
|
47 |
-
COPY --chown=user . $HOME/app/text-remove/CRAFT-pytorch
|
48 |
RUN wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=1Jk4eGD7crsqCCg9C9VjCLkMN3ze8kutZ' -O "craft_mlt_25k.pth"
|
49 |
RUN pip install gdown
|
50 |
RUN gdown 1XSaFwBkOaFOdtk4Ane3DFyJGPRw6v5bO
|
51 |
|
52 |
# Set up lama
|
53 |
WORKDIR $HOME/app/text-remove/lama
|
54 |
-
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 chmod 777 $HOME/app/text-remove/target_test
|
59 |
-
RUN chmod 777 $HOME/app/text-remove/test_folder
|
60 |
|
61 |
# RUN useradd -m -u 1000 user
|
62 |
# USER user
|
|
|
28 |
&& apt-get clean
|
29 |
|
30 |
WORKDIR $HOME/app
|
31 |
+
#COPY --chown=user . $HOME/app
|
32 |
# Create .streamlit/config.toml file
|
33 |
RUN mkdir -p /app/.streamlit && \
|
34 |
echo "[server]\nenableXsrfProtection = false\nenableCORS = false" > /app/.streamlit/config.toml
|
|
|
38 |
|
39 |
# Set the working directory to the cloned repo
|
40 |
WORKDIR $HOME/app/text-remove
|
41 |
+
#COPY --chown=user . $HOME/app/text-remove
|
42 |
RUN mkdir -p $HOME/app/text-remove/.streamlit && \
|
43 |
echo "[server]\nenableXsrfProtection = false\nenableCORS = false" > $HOME/app/text-remove/.streamlit/config.toml
|
44 |
|
45 |
# Set up Craft
|
46 |
WORKDIR $HOME/app/text-remove/CRAFT-pytorch
|
47 |
+
#COPY --chown=user . $HOME/app/text-remove/CRAFT-pytorch
|
48 |
RUN wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=1Jk4eGD7crsqCCg9C9VjCLkMN3ze8kutZ' -O "craft_mlt_25k.pth"
|
49 |
RUN pip install gdown
|
50 |
RUN gdown 1XSaFwBkOaFOdtk4Ane3DFyJGPRw6v5bO
|
51 |
|
52 |
# Set up lama
|
53 |
WORKDIR $HOME/app/text-remove/lama
|
54 |
+
#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 chmod 777 $HOME/app/text-remove/target_test
|
59 |
+
#RUN chmod 777 $HOME/app/text-remove/test_folder
|
60 |
|
61 |
# RUN useradd -m -u 1000 user
|
62 |
# USER user
|