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 067946a5bf
No known key found for this signature in database
GPG Key ID: 7C31D23ECB1006F3
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ ENV ANDROID_NDK_HOME ${ANDROID_HOME}/ndk-bundle
# Enable prebuild mode # Enable prebuild mode
ENV SYNCTHING_ANDROID_PREBUILT 1 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) # Run prebuild script (will prebuild stuff into the image if env var is set)
ADD prebuild.sh /opt/prebuild.sh ADD prebuild.sh /opt/prebuild.sh
RUN /opt/prebuild.sh RUN /opt/prebuild.sh