diff --git a/Dockerfile b/Dockerfile index 694fdee..2abbc5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,6 @@ FROM openjdk:8u222-jre MAINTAINER opsli.com -LABEL version=V1.4.0 LABEL description=OPSLI-快速开发平台 LABEL qqGroup=724850675 @@ -16,14 +15,14 @@ WORKDIR /usr/local/opsli/opsli-boot RUN ["echo","OPSLI 快速开发平台 building..."] # 拷贝Jar -COPY ./opsli-starter/target/*.jar ./ +COPY ./opsli-starter/target/*.jar ./app.jar # 切换为上海时区 RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \ && echo $TZ > /etc/timezone # 启动镜像 -ENTRYPOINT ["java", "-Dfile.encoding=utf-8", "-Djava.security.egd=file:/dev/./urandom", "-jar", "opsli-starter-1.4.0.jar"] +ENTRYPOINT ["java", "-Dfile.encoding=utf-8", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] CMD ["-Xmx2048m", "-Xms2048m", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=200", "--spring.profiles.active=dev"] # 暴露端口 diff --git a/docker-compose.yml b/docker-compose.yml index 5441e36..80bd8c3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,6 @@ services: - --spring.profiles.active=test privileged: true volumes: - - /www/wwwroot/demo.opsli.bedebug.com/backend/var:/usr/local/opsli/opsli-boot/var #挂载目录 + - /www/wwwroot/demo.opsli.bedebug.com/backend/logs:/usr/local/opsli/opsli-boot/logs #挂载目录 ports: - "7000:7000"