-
Notifications
You must be signed in to change notification settings - Fork 227
Open
Description
Please provide a small Dockerfile that demonstrates your issue.
There's a special TARGETARCH I can use so I can avoid explicitly doing --build-arg ARCH=$(uname -m):
FROM ubuntu
ARG S6_OVERLAY_VERSION='3.2.0.3'
ARG TARGETARCH
RUN apt-get update && apt-get install -y nginx xz-utils && \
echo "daemon off;" >> /etc/nginx/nginx.conf
CMD ["/usr/sbin/nginx"]
ADD https://github.com/just-containers/s6-overlay/releases/download/v"${S6_OVERLAY_VERSION}"/s6-overlay-noarch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v"${S6_OVERLAY_VERSION}"/s6-overlay-"${TARGETARCH}".tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-"${TARGETARCH}".tar.xz
ENTRYPOINT ["/init"]TARGETARCH normalises as both aarch64 and arm64 are the same, see: https://github.com/BretFisher/multi-platform-docker-build/blob/main/README.md#the-problem-with-downloading-binaries-in-dockerfiles
To avoid breaking anyones scripts can you just copy s6-overlay-aarch64.tar.xz & its checksum to s6-overlay-arm64.tar.xz and release it on GitHub Releases?
Thanks
EDIT: This issue will be closed by #561
Metadata
Metadata
Assignees
Labels
No labels