Skip to content

Instantly share code, notes, and snippets.

@imsodin
Last active March 20, 2018 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imsodin/802c50c50139cac7f67dfdf20a11c0aa to your computer and use it in GitHub Desktop.
Save imsodin/802c50c50139cac7f67dfdf20a11c0aa to your computer and use it in GitHub Desktop.
FROM openjdk:8
ENV ANDROID_HOME="/media/android-sdk"
ENV ANDROID_NDK_HOME="/media/android-ndk"
ENV GOROOT="/media/go"
RUN mkdir -p $ANDROID_HOME
RUN mkdir -p $ANDROID_NDK_HOME
RUN mkdir -p $GOROOT
VOLUME $ANDROID_HOME
VOLUME $ANDROID_NDK_HOME
VOLUME $GOROOT
ENV PATH="${GOROOT}/bin:${PATH}"
WORKDIR /syncthing-android
COPY . .
CMD syncthing/build-syncthing.bash && ./gradlew assembleDebug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment