Spaces:
Paused
Paused
Download Dockerfile from rs-cloud/waifu: direct link, hf CLI and curl.
- Browser
- Download file 502 Bytes
-
https://huggingface.co/spaces/rs-cloud/waifu/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rs-cloud/waifu/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rs-cloud/waifu/resolve/main/Dockerfile
502 Bytes
| FROM debian:bookworm-slim AS puller | |
| RUN apt-get update -qq && \ | |
| apt-get install -y skopeo umoci ca-certificates | |
| RUN --mount=type=secret,id=WIFE_CREDS \ | |
| --mount=type=secret,id=WIFE_URL \ | |
| skopeo copy --src-creds "$(cat /run/secrets/WIFE_CREDS | tr -d '\r\n ')" "$(cat /run/secrets/WIFE_URL | tr -d '\r\n ')" oci:wife_oci:latest && \ | |
| umoci unpack --image wife_oci:latest /wife_fs | |
| FROM scratch | |
| COPY --from=puller /wife_fs/rootfs/ / | |
| WORKDIR /app | |
| EXPOSE 7860 | |
| USER 1000 | |
| CMD ["./wife.sh"] |