Skip to content

Commit

Permalink
fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexei-led committed May 10, 2023
1 parent 5487c1e commit f22a5ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN --mount=type=cache,target=/go/mod go mod download
COPY . .

# build
RUN make TARGETOS=${TARGETOS} TARGETARCH=${TARGETARCH}
RUN make build TARGETOS=${TARGETOS} TARGETARCH=${TARGETARCH}

#
# ------ release Docker image ------
Expand All @@ -49,7 +49,7 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certifi
COPY --from=builder /etc/passwd.min /etc/passwd

# this is the last command since it's never cached
COPY --from=build /go/src/app/.bin/eks-lens-agent /eks-lens-agent
COPY --from=build /go/src/app/.bin/github.com/doitintl/eks-lens-agent /eks-lens-agent

# set user nobody
USER nobody
Expand Down

0 comments on commit f22a5ed

Please sign in to comment.