From c32810e67b5e775807d18547c78aa3f4392e801f Mon Sep 17 00:00:00 2001 From: J2ghz Date: Sun, 2 Jul 2017 13:53:46 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2025d9c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM runmymind/docker-android-sdk AS androidsdk +FROM python:3 + +ENV ANDROID_HOME=/opt/android-sdk +COPY --from=androidsdk /opt/android-sdk-linux ${ANDROID_HOME} + +RUN apt-get update && \ + apt-get install -yq --no-install-recommends \ + openjdk-7-jdk \ + && apt-get clean && rm -rf /var/lib/apt/lists/* + +RUN git clone --depth 1 https://gitlab.com/fdroid/fdroidserver.git \ + && cd fdroidserver \ + && pip3 install -e . \ + && python3 setup.py install + +VOLUME ["/repo"] +WORKDIR /repo + +ENTRYPOINT ["fdroid"] +CMD ["--help"] \ No newline at end of file