diff --git a/Dockerfile b/Dockerfile index ad8e3c8..348a8b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,12 @@ ADD build/*.conf /etc/supervisor/conf.d/ # add install bash script ADD build/root/*.sh /root/ -# get release tag name from build arg +# release tag name from buildx arg ARG RELEASETAG +# arch from buildx --platform, e.g. amd64 +ARG TARGETARCH + # add run bash script ADD run/nobody/*.sh /home/nobody/ @@ -25,7 +28,7 @@ ADD config/nobody/ /home/nobody/ # make executable and run bash scripts to install app RUN chmod +x /root/*.sh /home/nobody/*.sh && \ - /bin/bash /root/install.sh "${RELEASETAG}" + /bin/bash /root/install.sh "${RELEASETAG}" "${TARGETARCH}" # docker settings #################