Dockerfile格式

1
2
3
4
5
6
7
8
9
10
11
12
13
FROM openjdk:8-jdk-alpine

WORKDIR /work-dir

ARG JAR_FILE=/path/app.jar

COPY ${JAR_FILE} app.jar

EXPOSE 8080

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms128m -Xmx256m -Djava.security.egd=file:/dev/./urandom

CMD sleep 3; java $JAVA_OPTS -jar app.jar