File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 11FROM golang:1-bookworm as builder
22
33# Install GoReleaser
4- RUN wget https://github.com/goreleaser/goreleaser/releases/download/v1.26.2/goreleaser_1.26.2_amd64.deb
4+ RUN wget --no-verbose https://github.com/goreleaser/goreleaser/releases/download/v1.26.2/goreleaser_1.26.2_amd64.deb
55RUN dpkg -i goreleaser_1.26.2_amd64.deb
66
77# Create and change to the app directory.
@@ -16,15 +16,14 @@ RUN go mod download
1616# Copy local code to the container image.
1717COPY . ./
1818
19- # Download the example publications
2019# RUN git lfs pull && ls -alh publications
2120
22- # Run tests
23- FROM builder AS tester
24- RUN go test ./...
25-
2621# Run goreleaser
27- RUN goreleaser build --single-target --id rwp --skip-validate --snapshot
22+ RUN goreleaser build --single-target --id rwp --skip=validate --snapshot
23+
24+ # Run tests
25+ # FROM builder AS tester
26+ # RUN go test ./...
2827
2928# Produces very small images
3029FROM gcr.io/distroless/static-debian12 AS packager
@@ -41,6 +40,7 @@ ADD https://readium-playground-files.storage.googleapis.com/demo/moby-dick.epub
4140ADD https://readium-playground-files.storage.googleapis.com/demo/BellaOriginal3.epub /srv/publications/
4241
4342# Copy built Go binary
43+ COPY X dist/rwp_linux_amd64_v3/rwp
4444COPY --from=builder /app/dist/rwp_linux_amd64_v3/rwp /opt/
4545
4646EXPOSE 15080
You can’t perform that action at this time.
0 commit comments