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"]