Spaces:
Runtime error
Runtime error
leoxing1996
commited on
Commit
·
56a447a
1
Parent(s):
1dc011c
add civitAI token
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
@@ -10,6 +10,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
10 |
python3.9 \
|
11 |
python3-pip \
|
12 |
python3-dev \
|
|
|
13 |
git \
|
14 |
ffmpeg \
|
15 |
wget \
|
@@ -56,12 +57,13 @@ RUN mkdir models
|
|
56 |
RUN huggingface-cli download Leoxing/Live2Diff live2diff.ckpt --local-dir ./models
|
57 |
RUN huggingface-cli download runwayml/stable-diffusion-v1-5 \
|
58 |
--local-dir ./models/Model/stable-diffusion-v1-5
|
59 |
-
|
|
|
|
|
60 |
RUN wget https://github.com/isl-org/MiDaS/releases/download/v3/dpt_hybrid_384.pt -P models
|
61 |
|
62 |
WORKDIR ${HOME}/app/demo
|
63 |
-
RUN
|
64 |
-
RUN ls -a ../models/Model
|
65 |
RUN ls -a
|
66 |
# RUN pip install -r requirements.txt
|
67 |
CMD ["bash", "./start.sh"]
|
|
|
10 |
python3.9 \
|
11 |
python3-pip \
|
12 |
python3-dev \
|
13 |
+
tree \
|
14 |
git \
|
15 |
ffmpeg \
|
16 |
wget \
|
|
|
57 |
RUN huggingface-cli download Leoxing/Live2Diff live2diff.ckpt --local-dir ./models
|
58 |
RUN huggingface-cli download runwayml/stable-diffusion-v1-5 \
|
59 |
--local-dir ./models/Model/stable-diffusion-v1-5
|
60 |
+
|
61 |
+
RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
|
62 |
+
bash scripts/download.sh felted $(cat /run/secrets/TOKEN)
|
63 |
RUN wget https://github.com/isl-org/MiDaS/releases/download/v3/dpt_hybrid_384.pt -P models
|
64 |
|
65 |
WORKDIR ${HOME}/app/demo
|
66 |
+
RUN tree ../models
|
|
|
67 |
RUN ls -a
|
68 |
# RUN pip install -r requirements.txt
|
69 |
CMD ["bash", "./start.sh"]
|