Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed Oct 17, 2018
1 parent ca9f019 commit 1167bce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM maven:3
LABEL maintainer="Ryan Wang<[email protected]>"

WORKDIR /opt/halo
ADD . /tmp

RUN cd /tmp && mvn package -Pprod && mv target/dist/halo/* /opt/halo/ \
&& rm -rf /tmp/* && rm -rf ~/.m2

EXPOSE 8090

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/opt/halo/app.jar"]

0 comments on commit 1167bce

Please sign in to comment.