Skip to content

Commit

Permalink
Revert "Dockerfile: switch base image to distroless (tailscale#137)"
Browse files Browse the repository at this point in the history
This reverts commit a552df7.
  • Loading branch information
nathanmsmith committed Sep 29, 2024
1 parent b3ab9a6 commit f437f5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM --platform=$BUILDPLATFORM golang:1.23-alpine as build
FROM --platform=$BUILDPLATFORM cgr.dev/chainguard/wolfi-base as build
RUN apk update && apk add build-base git openssh go-1.21

WORKDIR /work

Expand All @@ -17,7 +18,8 @@ RUN \
fi; \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -v ./cmd/golink

FROM gcr.io/distroless/static-debian12:nonroot

FROM cgr.dev/chainguard/static:latest

ENV HOME /home/nonroot

Expand Down

0 comments on commit f437f5d

Please sign in to comment.