Skip to content

Commit

Permalink
set default fallback case for architecture to be x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
XIAZY authored and christophetd committed Dec 3, 2021
1 parent ad3fb57 commit d020e88
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,17 @@ ENV BACKUP_SCHEDULE='* * * * *' \
#-- Other steps
#--
RUN apk --no-cache add ca-certificates && update-ca-certificates
RUN wget https://github.com/gilbertchen/duplicacy/releases/download/v${DUPLICACY_VERSION}/duplicacy_linux_x64_${DUPLICACY_VERSION} -O /usr/bin/duplicacy && \
RUN ARCH="$(uname -m)";\
if [ "$ARCH" == "x86" ]; then \
DUPLICACY_ARCH="x86"; \
elif [ "$ARCH" == "aarch64" ]; then \
DUPLICACY_ARCH="arm64"; \
elif [ "$ARCH" == "armv7l" ]; then \
DUPLICACY_ARCH="arm"; \
else \
DUPLICACY_ARCH="x64"; \
fi; \
wget https://github.com/gilbertchen/duplicacy/releases/download/v${DUPLICACY_VERSION}/duplicacy_linux_${DUPLICACY_ARCH}_${DUPLICACY_VERSION} -O /usr/bin/duplicacy && \
chmod +x /usr/bin/duplicacy

RUN mkdir /app
Expand Down

0 comments on commit d020e88

Please sign in to comment.