From 09a1d4ac0a67c8d964cb2343189ddaf0664df527 Mon Sep 17 00:00:00 2001 From: lzzy12 Date: Fri, 1 Nov 2019 18:20:39 +0530 Subject: [PATCH] Add Docker steps to install Mega sdk Signed-off-by: lzzy12 --- Dockerfile | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 813599f..f2a5df6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,24 @@ FROM python:3.8-slim-buster +RUN apt-get update +RUN apt-get install -y git aria2 g++ gcc autoconf automake \ + m4 libtool qt4-qmake make libqt4-dev libcurl4-openssl-dev \ + libcrypto++-dev libsqlite3-dev libc-ares-dev \ + libsodium-dev libnautilus-extension-dev \ + libssl-dev libfreeimage-dev swig + +# Installing mega sdk python binding +ENV MEGA_SDK_VERSION '3.6.4' +RUN git clone https://github.com/meganz/sdk.git sdk +WORKDIR sdk +RUN git checkout v$MEGA_SDK_VERSION && ./autogen.sh && \ + ./configure --disable-silent-rules --enable-python --disable-examples && \ + make -j$(nproc --all) && cd bindings/python/ && \ + python setup.py bdist_wheel && cd dist/ && \ + pip install --no-cache-dir megasdk-$MEGA_SDK_VERSION-*.whl + WORKDIR /usr/src/app RUN chmod 777 /usr/src/app COPY . . RUN pip install --no-cache-dir -r requirements.txt -RUN apt-get update -RUN apt-get install -y aria2 - CMD ["bash","start.sh"] \ No newline at end of file