zhyxTo2.0/energy-auth/Dockerfile

22 lines
820 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#Docker镜像可以选择以下三种前两种已经内置字体第三种为原生的openjdk8-openj9镜像
#1.FROM energyx/alpine-java:8_server-jre_cn_unlimited
#2.FROM energyx/alpine-java:openjdk8-openj9_cn_slim
#3.FROM adoptopenjdk/openjdk8-openj9:jdk8u262-b10_openj9-0.21.0-alpine-slim
#第3点的tag可以到该地址查询https://hub.docker.com/r/adoptopenjdk/openjdk8-openj9/tags?page=1&ordering=last_updated&name=alpine-slim
#版本介绍一览https://hub.docker.com/r/adoptopenjdk/openjdk8-openj9
FROM energyx/alpine-java:openjdk8-openj9_cn_slim
MAINTAINER energyjava@qq.com
RUN mkdir -p /energy/auth
WORKDIR /energy/auth
EXPOSE 8100
ADD ./target/energy-auth.jar ./app.jar
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
CMD ["--spring.profiles.active=test"]