Dockerfile 304 B

1234567
  1. FROM 192.168.123.25:31104/unis/java:8
  2. RUN rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
  3. ADD ./target/file.jar /root
  4. CMD ["sh", "-c", "cd /root; java -Djava.security.egd=file:/dev/./urandom -jar /root/file.jar --file.server.enable-self-preservation=false"]
  5. EXPOSE 11010