Commit 525c145b authored by 魏博昱's avatar 魏博昱

..

parent 50d71289
# 基于openjdk 镜像
FROM java:8
# 将本地文件夹挂在到当前容器
VOLUME /tmp
# 复制文件到容器
ADD vector-0.0.1-SNAPSHOT.jar app.jar
COPY application.yml
#时区设置(不一定需要)
#RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone
# 声明需要暴露的端口
EXPOSE 8090
# 配置容器启动后执行的命令
RUN bash -c "touch /app.jar"
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment