Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]