mirror of https://gitee.com/maxjhandsome/pig
🐳 Work about Docker. 简化nacos 镜像构建
This commit is contained in:
parent
1be50ca21c
commit
4e6d9d719b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue