Skip to content

Commit

Permalink
chore: print the current arch if not matched
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 committed Oct 7, 2024
1 parent 4b2f11c commit 23dbeee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG GO_VERSION=1.23
ARG ALPINE_VERSION=3.20
ARG TARGETARCH

FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} as build
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS build

ARG TARGETARCH
ARG AZCOPY_VERSION
Expand Down Expand Up @@ -34,11 +34,11 @@ RUN if [ "${TARGETARCH}" = "amd64" ]; then \
curl -sSLo /usr/local/bin/dumb-init ${DUMB_INIT_ARM} && \
chmod +x /usr/local/bin/dumb-init; \
else \
echo "Unsupported architecture"; \
echo "Unsupported architecture: ${TARGETARCH}"; \
exit 1; \
fi

FROM busybox:1 as release
FROM busybox:1 AS release

ARG TARGETARCH
ARG AZCOPY_VERSION
Expand Down

0 comments on commit 23dbeee

Please sign in to comment.