Browse Source

add Dockerfile

reghao 1 year ago
parent
commit
c1171a6e68
1 changed files with 7 additions and 0 deletions
  1. 7 0
      web/Dockerfile

+ 7 - 0
web/Dockerfile

@@ -0,0 +1,7 @@
+FROM openjdk:11.0.13-jdk-buster
+
+WORKDIR /app
+RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
+COPY bin/bnt-web.jar /app/bnt-web.jar
+
+ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Djava.awt.headless=true","-jar","/app/bnt-web.jar"]