jeepay/jeepay-payment/Dockerfile
2024-03-05 10:37:50 +08:00

37 lines
879 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# jeepay-payment商户平台 java程序镜像构建脚本 .Power by terrfly
#
# ------ START ------
# 基础镜像来自: https://hub.docker.com/ 官方OFFICIAL
FROM openjdk:8u342-jdk
MAINTAINER Terrfly
# 对外映射的端口 ( 不明确EXPOSE 也不影响映射 )
EXPOSE 9216
# 挂载目录 "/jeepayhomes/service/app/application.yml 这个文件不能写到VOLUME中 否则将映射成为了目录导致启动异常。
VOLUME ["/jeepayhomes/service/logs", "/jeepayhomes/service/uploads"]
# 使用jeepay用户启动。 ( 需要 RUN adduser等一系列操作 )
# USER jeepay:jeepay
# 创建目录
RUN mkdir /jeepayhomes/service/app -p
# 安装
COPY ./target/jeepay-payment.jar /jeepayhomes/service/app/jeepay-payment.jar
# 设置工作目录
WORKDIR /jeepayhomes/service/app
CMD ["java", "-jar", "jeepay-payment.jar"]
# ------ END ------