1234567891011121314151617181920 |
- # 容器化部署方案
- # Docker image for springboot file run
- # VERSION 0.0.1
- # #################################################################### #
- # Description:
- # 1、如使用docker部署,当前文件需要放到服务器/var/opt/application/data/fs4a-common-producer/路径下
- # 2、构建镜像:docker build -t fs4a-common-producer:1.0 .
- # 3、启动容器:docker run -d -p 9006:9006 -v /var/opt/application_server/log/fs4a-common-producer:/log.path_IS_UNDEFINED -v /var/opt/application_server/log/fs4a-myabtis:/var/opt/ fs4a-common-producer:1.0
- # 后续启动:docker start 镜像名称
- # 后续停止:docker stop 镜像名称
- # 或者可视化插件中停止与启动
- # #################################################################### #
- # 基础镜像使用java
- FROM adoptopenjdk/openjdk8-openj9:alpine-slim
- ADD /target/fs4a-common-producer-0.0.1-SNAPSHOT-exec.jar fs4a-common-producer.jar
- EXPOSE 9001
- ENTRYPOINT java $JVM_OPTS -Xshareclasses -Xquickstart -Duser.timezone=GMT+8 -jar /fs4a-common-producer.jar
|