Skip to content

Commit

Permalink
Make Dockerfile download mega binaries according to cpu architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
lzzy12 committed Dec 24, 2021
1 parent 4d0d75c commit 9f60efc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:20.04

WORKDIR /usr/src/app
SHELL ["/bin/bash", "-c"]
RUN chmod 777 /usr/src/app
RUN apt-get -qq update && \
DEBIAN_FRONTEND="noninteractive" apt-get -qq install -y tzdata aria2 git python3 python3-pip \
Expand All @@ -10,7 +11,7 @@ RUN apt-get -qq update && \
libcrypto++-dev libssl-dev \
libc-ares-dev libcurl4-openssl-dev \
libsqlite3-dev libsodium-dev && \
curl -L https://github.com/jaskaranSM/megasdkrest/releases/download/v0.1/megasdkrest -o /usr/local/bin/megasdkrest && \
curl -L https://github.com/lzzy12/megasdkrest/releases/download/v0.1.14-rebuild/megasdkrest-$(cpu=$(uname -m); if [[ "$cpu" == "x86_64" ]]; then echo "amd64"; elif [[ "$cpu" == "x86" ]]; then echo "i386"; elif [[ "$cpu" == "aarch64" ]]; then echo "arm64"; else echo $cpu; fi) -o /usr/local/bin/megasdkrest && \
chmod +x /usr/local/bin/megasdkrest

COPY requirements.txt .
Expand Down

0 comments on commit 9f60efc

Please sign in to comment.