1 Star 0 Fork 0

泡沫/leaning

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 830 Bytes
一键复制 编辑 原始数据 按行查看 历史
求求 提交于 2020-09-25 12:20 . new:DockerFile
FROM registry.cn-hangzhou.aliyuncs.com/acs/maven AS build-env
ENV MY_HOME=/app
RUN mkdir -p $MY_HOME
WORKDIR $MY_HOME
ADD pom.xml $MY_HOME
# get all the downloads out of the way
RUN ["/usr/local/bin/mvn-entrypoint.sh","mvn","verify","clean","--fail-never"]
# add source
ADD . $MY_HOME
# run maven install
RUN ["/usr/local/bin/mvn-entrypoint.sh","mvn","install", "-Dmaven.test.skip=true"]
RUN ls /app/target
# FROM openjdk:11
FROM openjdk:11-jre
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /app
COPY --from=build-env /app/target .
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m -Xms1024m -Xmx1024m -Xmn256m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC","-jar","/app/leaning-0.0.1-SNAPSHOT.jar"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xwdeng/leaning.git
[email protected]:xwdeng/leaning.git
xwdeng
leaning
leaning
master

搜索帮助