From cd68db8067e860b269dfa906a95d051adad32fe0 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Tue, 14 Jan 2025 12:55:55 -0500 Subject: [PATCH] manual build for the models Signed-off-by: Xe Iaso --- .github/workflows/docker-build.yml | 1 + Dockerfile | 10 ++++++---- models/Dockerfile | 6 ++++++ 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 models/Dockerfile diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 5180749..3ba2bc8 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index c3e8db6..852a370 100644 --- a/Dockerfile +++ b/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 \ diff --git a/models/Dockerfile b/models/Dockerfile new file mode 100644 index 0000000..333450c --- /dev/null +++ b/models/Dockerfile @@ -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 \ No newline at end of file