Skip to content

Commit

Permalink
add multiarch support
Browse files Browse the repository at this point in the history
  • Loading branch information
XIAZY authored and christophetd committed Dec 3, 2021
1 parent d020e88 commit e01a449
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,12 @@ ENV BACKUP_SCHEDULE='* * * * *' \
#--
RUN apk --no-cache add ca-certificates && update-ca-certificates
RUN ARCH="$(uname -m)";\
if [ "$ARCH" == "x86" ]; then \
DUPLICACY_ARCH="x86"; \
if [ "$ARCH" == "x86_64" ]; then \
DUPLICACY_ARCH="x64"; \
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
Expand Down

0 comments on commit e01a449

Please sign in to comment.