mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
28 lines
684 B
Docker
Executable File
28 lines
684 B
Docker
Executable File
# pig4cloud/java:8镜像增加了中文字体与wait-for-it.sh的支持
|
|
# 镜像链接:https://hub.docker.com/r/pig4cloud/java/
|
|
# wait-for-it.sh采用https://github.com/vishnubob/wait-for-it作为解决方案
|
|
FROM pig4cloud/java:8
|
|
|
|
MAINTAINER wangiegie@gmail.com
|
|
|
|
ARG JAR_FILE=./target/pig-auth.jar
|
|
|
|
# JVM调优参数等额外参数
|
|
ENV PARAMS ""
|
|
|
|
ENV NACOS_HOST pig-register
|
|
|
|
ENV NACOS_PORT 8848
|
|
|
|
ENV TZ=PRC
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
WORKDIR /tmp
|
|
|
|
EXPOSE 3000
|
|
|
|
ADD ${JAR_FILE} ./app.jar
|
|
|
|
ENTRYPOINT ["wait-for-it.sh","$NACOS_HOST:$NACOS_PORT","--","java", "-jar","app.jar" , "-Djava.security.egd=file:/dev/./urandom","$PARAMS"]
|