File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11FROM --platform=$BUILDPLATFORM golang:1-bookworm as builder
2+ ARG BUILDARCH TARGETOS TARGETARCH
23
34# Install GoReleaser
4- ARG BUILDARCH TARGETOS TARGETARCH
55RUN wget --no-verbose "https://github.com/goreleaser/goreleaser/releases/download/v1.26.2/goreleaser_1.26.2_$BUILDARCH.deb"
66RUN dpkg -i "goreleaser_1.26.2_$BUILDARCH.deb"
77
@@ -37,8 +37,8 @@ FROM gcr.io/distroless/static-debian12 AS packager
3737ADD https://pagure.io/mailcap/raw/master/f/mime.types /etc/
3838
3939# Add two demo EPUBs to the container by default
40- ADD https://readium-playground-files.storage.googleapis.com/demo/moby-dick.epub /srv/publications/
41- ADD https://readium-playground-files.storage.googleapis.com/demo/BellaOriginal3.epub /srv/publications/
40+ ADD --chown=nonroot:nonroot https://readium-playground-files.storage.googleapis.com/demo/moby-dick.epub /srv/publications/
41+ ADD --chown=nonroot:nonroot https://readium-playground-files.storage.googleapis.com/demo/BellaOriginal3.epub /srv/publications/
4242
4343# Copy built Go binary
4444COPY --from=builder "/app/rwp" /opt/
You can’t perform that action at this time.
0 commit comments