manual build for the models

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso 2025-01-14 12:55:55 -05:00
parent 2dbc651cec
commit cd68db8067
No known key found for this signature in database
3 changed files with 13 additions and 4 deletions

View File

@ -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

View File

@ -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
View 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