加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 513 Bytes
一键复制 编辑 原始数据 按行查看 历史
liguobao 提交于 2018-05-13 11:57 . add Dockerfile
FROM registry.cn-hangzhou.aliyuncs.com/acs/maven AS build-env
ENV MY_HOME=/usr/src/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"]
FROM java:8u111-jdk
WORKDIR /app
COPY --from=build-env /usr/src/app/vscrawler-web/target .
ENTRYPOINT ["java","-jar","/app/vscrawler-web.jar"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化