1 Star 0 Fork 219

c2cn/ujcms

forked from ujcms/ujcms_archive 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 872 Bytes
一键复制 编辑 原始数据 按行查看 历史
ujcms 提交于 2023-06-08 22:32 . v7.0.0 发布
# $ docker build -t ujcms:x.x.x --build-arg JAR_FILE=target/ujcms-x.x.x.jar .
#FROM eclipse-temurin:8-jre as builder
FROM eclipse-temurin:11-jre as builder
WORKDIR ujcms
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} ujcms.jar
RUN java -Djarmode=layertools -jar ujcms.jar extract
#FROM eclipse-temurin:8-jre
FROM eclipse-temurin:11-jre
WORKDIR ujcms
COPY --from=builder ujcms/dependencies/ ./
COPY --from=builder ujcms/spring-boot-loader/ ./
COPY --from=builder ujcms/snapshot-dependencies/ ./
COPY --from=builder ujcms/application/ ./
COPY --from=builder ujcms/application/BOOT-INF/classes/application-docker.yaml ./BOOT-INF/classes/config/application.yaml
COPY src/main/webapp/ ./static/
#COPY static/ ./static/
#VOLUME ["/ujcms/static", "/ujcms/config", "/ujcms/BOOT-INF/classes/license"]
EXPOSE 8080
ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/c2cn/ujcms.git
git@gitee.com:c2cn/ujcms.git
c2cn
ujcms
ujcms
master

搜索帮助