1 Star 0 Fork 524

whb413 / PlayEdu开源培训系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 459 Bytes
一键复制 编辑 原始数据 按行查看 历史
none 提交于 2023-04-17 15:25 . 优化dockerfile
FROM openjdk:17 as builder
WORKDIR /app
COPY . /app
RUN /app/docker-build.sh
FROM openjdk:17
WORKDIR /app
# 使用东八区时间环境
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# 将指定目录下的jar包复制到docker容器的/目录下
COPY --from=builder /app/target/playedu-api-*.jar /app/app.jar
# 声明服务运行在8080端口
EXPOSE 9898
# 指定docker容器启动时运行jar包
ENTRYPOINT ["java", "-jar", "app.jar"]
Java
1
https://gitee.com/rabbit_bear/playedu.git
git@gitee.com:rabbit_bear/playedu.git
rabbit_bear
playedu
PlayEdu开源培训系统
main

搜索帮助