Skip to content

Commit

Permalink
fix: Use base image that includes CA certs (#35)
Browse files Browse the repository at this point in the history
Signed-off-by: John McBride <[email protected]>
  • Loading branch information
jpmcb authored Aug 14, 2023
1 parent 65f6e18 commit cfb2e7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#syntax=docker/dockerfile:1.4
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.1.0 AS xx

FROM --platform=$BUILDPLATFORM golang:1.20-alpine AS builder
FROM --platform=$BUILDPLATFORM golang:alpine AS builder
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG TARGETOS
Expand All @@ -15,6 +15,6 @@ RUN --mount=target=/go/pkg/mod,type=cache \
--mount=target=/root/.cache,type=cache \
xx-go build -ldflags="${GO_LDFLAGS}" -o pizza-oven .

FROM scratch
FROM golang:alpine
COPY --from=builder /app/pizza-oven /usr/bin/
CMD ["/usr/bin/pizza-oven"]
CMD ["/usr/bin/pizza-oven"]

0 comments on commit cfb2e7a

Please sign in to comment.