From cfb2e7ab25d45d2feaf6256e53e76ce6de88b332 Mon Sep 17 00:00:00 2001 From: John McBride Date: Mon, 14 Aug 2023 12:31:00 -0600 Subject: [PATCH] fix: Use base image that includes CA certs (#35) Signed-off-by: John McBride --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 50e285f..1cc22cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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"] \ No newline at end of file +CMD ["/usr/bin/pizza-oven"]