支持docker

pull/3/head
tanghc 4 years ago
parent 9f83da1cda
commit 92d2ba6a20
  1. 13
      dockerfile

@ -8,7 +8,6 @@ ADD sop-website/target/*.jar sop/sop-website/sop-website.jar
ADD sop-auth/target/*.jar sop/sop-website/sop-auth.jar ADD sop-auth/target/*.jar sop/sop-website/sop-auth.jar
ADD sop-example/sop-story/target/*.jar sop/sop-story/sop-story.jar ADD sop-example/sop-story/target/*.jar sop/sop-story/sop-story.jar
# JVM设置 # JVM设置
ENV JAVA_OPTS="-Xms128m -Xmx128m" ENV JAVA_OPTS="-Xms128m -Xmx128m"
@ -16,10 +15,10 @@ ENV JAVA_OPTS="-Xms128m -Xmx128m"
# --logging.file:日志 # --logging.file:日志
# --mysql.host:mysql地址 # --mysql.host:mysql地址
# --register.url:nacos地址 # --register.url:nacos地址
ENV CONF="--logging.file.path=log --mysql.host=10.1.30.120:3306 --register.url=10.1.30.110:8848" ENV CONF="--mysql.host=10.1.30.120:3306 --register.url=10.1.30.110:8848"
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /sop/sop-gateway/sop-gateway.jar ${CONF} ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /sop/sop-gateway/sop-gateway.jar ${CONF} --logging.file.path=/sop/sop-gateway/log \
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /sop/sop-admin/sop-admin.jar ${CONF} && java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /sop/sop-admin/sop-admin.jar ${CONF} --logging.file.path=/sop/sop-admin/log \
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /sop/sop-website/sop-website.jar ${CONF} && java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /sop/sop-website/sop-website.jar ${CONF} --logging.file.path=/sop/sop-website/log \
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /sop/sop-auth/sop-auth.jar ${CONF} && java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /sop/sop-auth/sop-auth.jar ${CONF} --logging.file.path=/sop/sop-auth/log \
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /sop/sop-story/sop-story.jar ${CONF} && java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /sop/sop-story/sop-story.jar ${CONF} --logging.file.path=/sop/sop-story/log

Loading…
Cancel
Save