Commit e6d0c2af authored by 33's avatar 33

Dockerfile

parent 8773f29d
...@@ -6,5 +6,6 @@ RUN echo 'Asia/Shanghai' >/etc/timezone ...@@ -6,5 +6,6 @@ RUN echo 'Asia/Shanghai' >/etc/timezone
ADD joying-portal-1.1.0.jar app.jar ADD joying-portal-1.1.0.jar app.jar
EXPOSE 8001 EXPOSE 8001
# -Dspring.profiles.active=sit 等号后面表示使用application-sit.yml,修改该项使用其他配置文件
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=sit", "-jar", "/app.jar"] # -Dspring.profiles.active=prod 等号后面表示使用application-prod.yml,修改该项使用其他配置文件
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=prod", "-jar", "/app.jar"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment