Skip to content

Commit

Permalink
add targetarch arg
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Sep 19, 2023
1 parent 6382b74 commit 3789a5c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand All @@ -22,7 +25,7 @@ ADD run/nobody/*.sh /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
#################
Expand Down

0 comments on commit 3789a5c

Please sign in to comment.