add Dockerfile

pull/41/head
ruibaby 2018-10-18 06:04:06 +08:00
parent ca9f019854
commit 1167bceb6c
1 changed files with 12 additions and 0 deletions

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM maven:3
LABEL maintainer="Ryan Wang<i@ryanc.cc>"
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"]