1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-22 19:01:30 +00:00

persist go cache in docker build image

This commit is contained in:
Simon Frei 2019-09-05 15:58:51 +02:00
parent 0b34de48a0
commit 345452a38c
No known key found for this signature in database
GPG key ID: 7C31D23ECB1006F3

View file

@ -34,6 +34,9 @@ ENV ANDROID_NDK_HOME ${ANDROID_HOME}/ndk-bundle
# Enable prebuild mode
ENV SYNCTHING_ANDROID_PREBUILT 1
# Set location of go cache
ENV GOCACHE /opt/gocache
# Run prebuild script (will prebuild stuff into the image if env var is set)
ADD prebuild.sh /opt/prebuild.sh
RUN /opt/prebuild.sh