Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
fix #30
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed May 17, 2019
1 parent 5305a31 commit 4a91a6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM java:8
FROM openjdk:8

COPY target/hsweb-demo.jar /app.jar
COPY hsweb-ui /hsweb-ui
COPY docker-entrypoint.sh /
#COPY data /data
COPY config /config
EXPOSE 8080
ENTRYPOINT ["java","-jar","/app.jar"]
ENTRYPOINT ["/docker-entrypoint.sh"]
7 changes: 7 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
java -jar $JAVA_OPTS -server \
-XX:+UnlockExperimentalVMOptions \
-XX:+UseCGroupMemoryLimitForHeap \
-XX:-OmitStackTraceInFastThrow \
-Djava.security.egd=file:/dev/./urandom \
/app.jar

0 comments on commit 4a91a6d

Please sign in to comment.