🐳 Work about Docker. 简化nacos 镜像构建

This commit is contained in:
云彩ing 2021-09-12 07:37:19 +08:00
parent 1be50ca21c
commit 4e6d9d719b
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ RUN java -Djarmode=layertools -jar app.jar extract && rm app.jar
FROM moxm/java:1.8-full
LABEL maintainer="jclazz@outlook.com"
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk --no-cache add libstdc++
ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom"
WORKDIR pig-register
@ -17,4 +17,4 @@ COPY --from=builder /build/application/ ./
EXPOSE 8848
CMD sleep 30; java $JAVA_OPTS org.springframework.boot.loader.JarLauncher
CMD sleep 30; java $JAVA_OPTS org.springframework.boot.loader.JarLauncher