Skip to content

Commit

Permalink
Define alpine as alpine cert
Browse files Browse the repository at this point in the history
  • Loading branch information
Searge committed Nov 18, 2023
1 parent 0975317 commit 7e11c0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ RUN go install github.com/go-task/task/v3/cmd/task@latest \
&& go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest \
&& task install && task build

FROM alpine:latest AS alpine-cert

FROM scratch

LABEL org.opencontainers.image.title="GeekBot"
Expand All @@ -21,6 +23,6 @@ LABEL org.opencontainers.image.licenses Apache-2.0

WORKDIR /
COPY --from=builder /go/src/app/build/package/geekbot-* ./geekbot
COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=alpine-cert /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

ENTRYPOINT ["./geekbot", "start"]

0 comments on commit 7e11c0d

Please sign in to comment.