johann-foerster commited on
Commit
2480ca9
·
1 Parent(s): 7b55e59

preparations and models burned into docker container

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. prepare.py +4 -0
Dockerfile CHANGED
@@ -19,7 +19,8 @@ RUN ln -s /home/app/miniconda3/bin/conda /usr/bin/conda
19
  USER app
20
 
21
  RUN conda env create -f environment.yaml && \
22
- conda run --no-capture-output -n fooocus pip install -r requirements_versions.txt
 
23
 
24
  VOLUME /ai-christmas/models/checkpoints
25
  VOLUME /ai-christmas/models/loras
 
19
  USER app
20
 
21
  RUN conda env create -f environment.yaml && \
22
+ conda run --no-capture-output -n fooocus pip install -r requirements_versions.txt && \
23
+ conda run --no-capture-output -n fooocus python prepare.py
24
 
25
  VOLUME /ai-christmas/models/checkpoints
26
  VOLUME /ai-christmas/models/loras
prepare.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ from launch import prepare_environment, download_models
2
+
3
+ prepare_environment()
4
+ download_models()