Skip to content

Commit

Permalink
docker: Fix arch detection on pi builders
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jun 10, 2023
1 parent a46235d commit c4b5af4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions install/docker/Dockerfile.s6
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ COPY fs /
ARG S6_OVERLAY_VERSION=3.1.1.2
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
ENV S6_KEEP_ENV=1
RUN case "$(uname -m)" in \
x86_64) S6_ARCH='x86_64';; \
armv7l) S6_ARCH='armhf';; \
aarch64) S6_ARCH='aarch64';; \
ARG TARGETARCH
RUN case "${TARGETARCH}" in \
x86_64) S6_ARCH='amd64';; \
armv7l) S6_ARCH='arm';; \
aarch64) S6_ARCH='arm64';; \
*) echo "Your system architecture isn't supported."; exit 1 ;; \
esac \
&& cd /tmp \
Expand Down

0 comments on commit c4b5af4

Please sign in to comment.