Skip to content

Commit 956bc3c

Browse files
committed
Add ca-bundle to final image for sentry integration
1 parent 152f283 commit 956bc3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ COPY cmd/server /opt/cmd/server
2222
COPY go.mod go.sum /opt/.
2323
COPY --from=buf-builder /opt/protobuf /opt/protobuf
2424
COPY --from=node-builder /opt/cmd/server/dist /opt/cmd/server/dist
25-
RUN go mod tidy \
25+
RUN apk --no-cache add ca-certificates \
26+
&& go mod tidy \
2627
&& go build -ldflags="-X github.com/AS203038/looking-glass/pkg/utils.release=${VERSION}" -o /opt/looking-glass /opt/cmd/server
2728

2829
FROM scratch
2930
LABEL org.opencontainers.image.source https://github.com/AS203038/looking-glass
3031
LABEL org.opencontainers.image.description Yet another looking glass project
3132
LABEL org.opencontainers.image.licenses GPL-3.0-or-later
3233
WORKDIR /
34+
COPY --from=go-builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
3335
COPY --from=go-builder /opt/looking-glass /looking-glass
3436
ENTRYPOINT ["/looking-glass"]

0 commit comments

Comments
 (0)