Skip to content

Commit d5261d5

Browse files
committed
Update Dockerfile
1 parent c78e26d commit d5261d5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM 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
55
RUN 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.
1717
COPY . ./
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
3029
FROM gcr.io/distroless/static-debian12 AS packager
@@ -41,6 +40,7 @@ ADD https://readium-playground-files.storage.googleapis.com/demo/moby-dick.epub
4140
ADD 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
4444
COPY --from=builder /app/dist/rwp_linux_amd64_v3/rwp /opt/
4545

4646
EXPOSE 15080

0 commit comments

Comments
 (0)