mirror of
https://github.com/jeequan/jeepay
synced 2024-11-17 23:08:03 +08:00
37 lines
879 B
Docker
37 lines
879 B
Docker
#
|
||
# 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 ------
|
||
|
||
|
||
|
||
|