FROM openjdk:8
MAINTAINER "<715740383@qq.com>"
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY xxx.jar /xxx.jar
EXPOSE 7788
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Dfile.encoding=utf-8","-jar","-Xmx2048m","-Xms1024m","/xxx.jar","--spring.profiles.active=dev"]
springboot dockerfile : 连接
tomcat dockerfile文件 : 连接
node dockerfile (nginx) :连接
python dockerfile : 连接