cyywl_server/builds/Dockerfile

21 lines
628 B
Docker
Raw Permalink Normal View History

2023-05-16 17:47:16 +08:00
FROM registry.cn-hangzhou.aliyuncs.com/lrh-public/openjdk:8u222-jre-up
2023-05-16 17:34:03 +08:00
LABEL Author="axzsd" \
Email="atva725@qq.com" \
2023-05-16 17:47:16 +08:00
Description="创盈支付服务端"
2023-05-16 17:34:03 +08:00
ENV SPRING_PROFILES_ACTIVE="dev"
2023-06-16 13:55:56 +08:00
ENV JAVA_OPTIONS "-Xms1024m -Xmx2048m \
2023-05-16 17:47:16 +08:00
-XX:+HeapDumpOnOutOfMemoryError \
2023-05-16 17:34:03 +08:00
-Dfile.encoding=UTF-8 \
-Djava.awt.headless=true \
-Dsun.net.client.defaultConnectTimeout=10000 \
-Dsun.net.client.defaultReadTimeout=30000"
2023-05-16 17:47:16 +08:00
WORKDIR /work/projects/yudao-server
COPY yudao-server/target/yudao-server.jar /opt/app.jar
2023-05-16 17:34:03 +08:00
2023-05-16 17:47:16 +08:00
EXPOSE 48080
2023-05-16 17:34:03 +08:00
ENTRYPOINT exec java $JAVA_OPTIONS -jar -Dspring.profiles.active=${SPRING_PROFILES_ACTIVE} /opt/app.jar