fix dockerfile

This commit is contained in:
hengyunabc 2020-04-02 22:36:59 +08:00
parent ea252fdb5a
commit fa5fc3d575
2 changed files with 4 additions and 4 deletions

View File

@ -3,9 +3,9 @@ FROM openjdk:8-jdk-alpine
ARG ARTHAS_VERSION="3.1.8" ARG ARTHAS_VERSION="3.1.8"
ARG MIRROR=false ARG MIRROR=false
ENV MAVEN_HOST=http://repo1.maven.org/maven2 \ ENV MAVEN_HOST=https://repo1.maven.org/maven2 \
ALPINE_HOST=dl-cdn.alpinelinux.org \ ALPINE_HOST=dl-cdn.alpinelinux.org \
MIRROR_MAVEN_HOST=http://maven.aliyun.com/repository/public \ MIRROR_MAVEN_HOST=https://maven.aliyun.com/repository/public \
MIRROR_ALPINE_HOST=mirrors.aliyun.com MIRROR_ALPINE_HOST=mirrors.aliyun.com
# if use mirror change to aliyun mirror site # if use mirror change to aliyun mirror site

View File

@ -3,8 +3,8 @@ FROM alpine
ARG ARTHAS_VERSION="3.1.8" ARG ARTHAS_VERSION="3.1.8"
ARG MIRROR=false ARG MIRROR=false
ENV MAVEN_HOST=http://repo1.maven.org/maven2 \ ENV MAVEN_HOST=https://repo1.maven.org/maven2 \
MIRROR_MAVEN_HOST=http://maven.aliyun.com/repository/public MIRROR_MAVEN_HOST=https://maven.aliyun.com/repository/public
# if use mirror change to aliyun mirror site # if use mirror change to aliyun mirror site
RUN if $MIRROR; then MAVEN_HOST=${MIRROR_MAVEN_HOST} ; fi && \ RUN if $MIRROR; then MAVEN_HOST=${MIRROR_MAVEN_HOST} ; fi && \