manual build for the models
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
2dbc651cec
commit
cd68db8067
1
.github/workflows/docker-build.yml
vendored
1
.github/workflows/docker-build.yml
vendored
@ -45,6 +45,7 @@ jobs:
|
||||
|
||||
- run: |
|
||||
aws s3 sync s3://waifuwave/models models
|
||||
find models -exec touch -a -m "1970-01-01T00:00:00" {} +
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v4
|
||||
|
10
Dockerfile
10
Dockerfile
@ -1,9 +1,11 @@
|
||||
FROM anu-registry.fly.dev/models/waifuwave AS models
|
||||
|
||||
FROM anu-registry.fly.dev/runners/comfyui:latest
|
||||
|
||||
COPY models/checkpoints /opt/comfyui/models/checkpoints
|
||||
COPY models/embeddings /opt/comfyui/models/embeddings
|
||||
COPY models/loras /opt/comfyui/models/loras
|
||||
COPY models/vae /opt/comfyui/models/vae
|
||||
COPY --link --from=models /opt/comfyui/models/checkpoints /opt/comfyui/models/checkpoints
|
||||
COPY --link --from=models /opt/comfyui/models/embeddings /opt/comfyui/models/embeddings
|
||||
COPY --link --from=models /opt/comfyui/models/loras /opt/comfyui/models/loras
|
||||
COPY --link --from=models /opt/comfyui/models/vae /opt/comfyui/models/vae
|
||||
|
||||
RUN pip install Flask \
|
||||
&& git clone https://github.com/TemryL/ComfyS3 /opt/comfyui/custom_nodes/comfys3 \
|
||||
|
6
models/Dockerfile
Normal file
6
models/Dockerfile
Normal file
@ -0,0 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
COPY checkpoints /opt/comfyui/models/checkpoints
|
||||
COPY embeddings /opt/comfyui/models/embeddings
|
||||
COPY loras /opt/comfyui/models/loras
|
||||
COPY vae /opt/comfyui/models/vae
|
Loading…
x
Reference in New Issue
Block a user