更新gradle环境

This commit is contained in:
KennyLee 2019-01-07 13:48:08 +08:00
parent 15e86511ac
commit 449c69bb8a

View File

@ -31,10 +31,6 @@ RUN set -o errexit -o nounset \
&& echo "Symlinking root Gradle cache to gradle Gradle cache" \
&& ln -s /home/gradle/.gradle /root/.gradle
# merge maven docker configuration by kennylee
ENV USER_HOME_DIR="/home/gradle"
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
# Create Gradle volume
USER gradle
VOLUME "/home/gradle/.gradle"
@ -44,4 +40,7 @@ RUN set -o errexit -o nounset \
&& echo "Testing Gradle installation" \
&& gradle --version
# merge maven docker configuration by kennylee
ENV USER_HOME_DIR="/home/gradle"
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"