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 e266f7a commit e571cd5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ FROM binhex/arch-int-vpn:latest
LABEL org.opencontainers.image.authors = "binhex"
LABEL org.opencontainers.image.source = "https://github.com/binhex/arch-qbittorrentvpn"

# Architecture from buildx --platform, e.g. arm64
ARG TARGETARCH

# additional files
##################

Expand All @@ -14,9 +11,12 @@ ADD build/*.conf /etc/supervisor/conf.d/
# add bash scripts to install app
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 scripts
ADD run/nobody/*.sh /home/nobody/

Expand All @@ -28,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}" "${TARGETARCH}"
/bin/bash /root/install.sh "${RELEASETAG}" "${TARGETARCH}" "${TARGETARCH}"

# docker settings
#################
Expand Down

0 comments on commit e571cd5

Please sign in to comment.