1 Star 0 Fork 0

tony/jhipster-registry

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 805 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM openjdk:8 as builder
ADD . /code/
RUN \
cd /code/ && \
rm -Rf target node_modules && \
chmod +x /code/mvnw && \
sleep 1 && \
./mvnw package -Pprod -DskipTests && \
mv /code/target/*.war /jhipster-registry.war && \
rm -Rf /code/ /root/.m2 /root/.cache /tmp/*
FROM openjdk:8-jre-alpine
ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
SPRING_PROFILES_ACTIVE=prod,native \
GIT_URI=https://github.com/jhipster/jhipster-registry/ \
GIT_SEARCH_PATHS=central-config
EXPOSE 8761
COPY --from=builder /jhipster-registry.war .
RUN mkdir /target && \
chmod g+rwx /target
CMD ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/jhipster-registry.war","--spring.cloud.config.server.git.uri=${GIT_URI}","--spring.cloud.config.server.git.search-paths=${GIT_SEARCH_PATHS}"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/tonyduan/jhipster-registry.git
git@gitee.com:tonyduan/jhipster-registry.git
tonyduan
jhipster-registry
jhipster-registry
master

搜索帮助