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