Skip to content

Commit

Permalink
Fix Dockerfile for amd64 microarchitectures (#2617)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Apr 21, 2022
1 parent bac70e8 commit ebee26b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,10 @@ COPY --link --chown=101:0 nginx-ingress /
############################################# Create image with nginx-ingress built by GoReleaser #############################################
FROM common AS goreleaser
ARG TARGETARCH
ARG TARGETVARIANT

LABEL org.nginx.kic.image.build.version="goreleaser"

COPY --link --chown=101:0 dist/kubernetes-ingress_linux_$TARGETARCH${TARGETVARIANT:+_7}/nginx-ingress /
COPY --link --chown=101:0 dist/kubernetes-ingress_linux_$TARGETARCH*/nginx-ingress /


############################################# Create image with nginx-ingress built by GoReleaser for AWS Marketplace #############################################
Expand All @@ -298,7 +297,7 @@ ARG TARGETARCH

LABEL org.nginx.kic.image.build.version="aws"

COPY --link --chown=101:0 dist/aws_linux_$TARGETARCH/nginx-ingress /
COPY --link --chown=101:0 dist/aws_linux_$TARGETARCH*/nginx-ingress /


############################################# Create image with nginx-ingress extracted from image on Docker Hub #############################################
Expand Down

0 comments on commit ebee26b

Please sign in to comment.