Created
August 30, 2019 10:06
-
-
Save xoriole/333c2c98191cfa4829e4ca980ed6dff6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM triblertester/ipv8-p4a:latest | |
VOLUME /dist | |
WORKDIR /home/user | |
#RUN rm -rf /home/user/.local/lib/python2.7/site-packages/pythonforandroid | |
RUN mkdir -p /home/user/.local/lib/python2.7/site-packages | |
RUN if test -L /home/user/.local/lib/python2.7/site-packages/pythonforandroid; then ln -s /home/user/pythonforadnroid /home/user/.local/lib/python2.7/site-packages/pythonforandroid; fi | |
RUN rm -rf /home/user/ipv8-android-service && git clone -b jenkins_wild https://github.com/Tribler/ipv8-android-service.git && cp -r ipv8-android-service/recipes/* ~/pythonforandroid/recipes | |
RUN virtualenv --python=python3 venv \ | |
&& . venv/bin/activate \ | |
&& pip3 install -e . | |
WORKDIR /home/user/ipv8-android-service | |
RUN . /home/user/venv/bin/activate | |
RUN . /home/user/venv/bin/activate && ./build.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build the image
docker build --tag=docker-ipv8-android-service --file Dockerfile .
docker run --rm -v `pwd`:/dist docker-ipv8-android-service cp -r /home/user/ipv8-android-service /dist