Skip to content

Commit

Permalink
update Dockerfile base image
Browse files Browse the repository at this point in the history
current base image was failing on arm64 builds.
we now use debian for build and distroless for the app.

Signed-off-by: adrianc <[email protected]>
  • Loading branch information
adrianchiris committed Sep 8, 2024
1 parent ba72d61 commit 44db159
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM golang:alpine as builder
FROM golang:1.22 as builder

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / build-images

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

WORKDIR /workspace
ADD ./ ./

ENV HTTP_PROXY $http_proxy
ENV HTTPS_PROXY $https_proxy
ADD ./go.mod ./
ADD ./go.sum ./
RUN go mod download

RUN apk add --update --virtual build-dependencies build-base binutils linux-headers git
RUN make
ADD ./ ./
RUN make all

FROM alpine
FROM gcr.io/distroless/base
WORKDIR /
COPY --from=builder /workspace/build/ib-kubernetes /
COPY --from=builder /workspace/build/plugins /plugins
Expand Down

0 comments on commit 44db159

Please sign in to comment.