Skip to content

Commit f3fc0c0

Browse files
committed
fix demo EPUB permissions
1 parent 733d594 commit f3fc0c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM --platform=$BUILDPLATFORM golang:1-bookworm as builder
2+
ARG BUILDARCH TARGETOS TARGETARCH
23

34
# Install GoReleaser
4-
ARG BUILDARCH TARGETOS TARGETARCH
55
RUN wget --no-verbose "https://github.com/goreleaser/goreleaser/releases/download/v1.26.2/goreleaser_1.26.2_$BUILDARCH.deb"
66
RUN dpkg -i "goreleaser_1.26.2_$BUILDARCH.deb"
77

@@ -37,8 +37,8 @@ FROM gcr.io/distroless/static-debian12 AS packager
3737
ADD 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
4444
COPY --from=builder "/app/rwp" /opt/

0 commit comments

Comments
 (0)