mirror of
https://gitee.com/arthas/arthas.git
synced 2024-12-02 04:08:34 +08:00
fix dockerfile
This commit is contained in:
parent
ea252fdb5a
commit
fa5fc3d575
@ -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
|
||||||
|
@ -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 && \
|
||||||
|
Loading…
Reference in New Issue
Block a user