Update Dockerfile

pull/73/head
RYAN0UP_ 2018-12-29 00:26:00 +08:00 committed by GitHub
parent 367ec29183
commit e2ffae2463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -7,11 +7,11 @@ ENV TZ=Asia/Shanghai \
DB_USER="admin" \
DB_PASSWORD="123456"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo $TZ > /etc/timezone
RUN cd /tmp && mvn package -Pci && 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/halo-latest.jar","--spring.datasource.username=$DB_USER","--spring.datasource.password=$DB_PASSWORD"]
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/opt/halo/halo-latest.jar","--spring.datasource.username=${DB_USER}","--spring.datasource.password=${DB_PASSWORD}"]