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