Add TARGETARCH argument to Dockerfile for architecture-specific builds
Some checks failed
Create and publish a Docker image for Linux / build-and-push-image (push) Failing after 3m41s
Some checks failed
Create and publish a Docker image for Linux / build-and-push-image (push) Failing after 3m41s
This commit is contained in:
@@ -2,6 +2,8 @@ FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache wget ca-certificates tar
|
||||
|
||||
ARG TARGETARCH
|
||||
|
||||
RUN if [ "$TARGETARCH" = "amd64" ]; then \
|
||||
ARCH="x86_64"; \
|
||||
elif [ "$TARGETARCH" = "arm64" ]; then \
|
||||
|
||||
Reference in New Issue
Block a user