Skip to content

Commit

Permalink
Dockerfile: fixate alpine image for result build
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed Apr 18, 2024
1 parent a02d3d0 commit 9eecf81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ ARG golang_version=1.20
FROM --platform=$BUILDPLATFORM golang:${golang_version}-alpine${alpine_version} as builder
ARG TARGETARCH
ENV GOARCH=$TARGETARCH
RUN apk update && apk add make

COPY . /go/src/github.com/tsuru/kubernetes-router/
WORKDIR /go/src/github.com/tsuru/kubernetes-router/
RUN CGO_ENABLED=0 make build

FROM alpine:latest
FROM alpine:${alpine_version}
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /go/src/github.com/tsuru/kubernetes-router/kubernetes-router .
Expand Down

0 comments on commit 9eecf81

Please sign in to comment.