mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 09:26:53 +00:00
container production mode as default
This commit is contained in:
parent
57297688aa
commit
34109f6481
4
.github/Dockerfile_PreBuild
vendored
4
.github/Dockerfile_PreBuild
vendored
@ -1,5 +1,7 @@
|
||||
FROM jetty:9.4.50-jre11-alpine
|
||||
|
||||
# Copy OBP source code
|
||||
# Copy build artifact (.war file) into jetty from 'maven' stage.
|
||||
COPY /obp-api/target/obp-api-1.*.war /var/lib/jetty/webapps/ROOT.war
|
||||
|
||||
# Run jetty in production mode
|
||||
ENV JAVA_OPTIONS='-Drun.mode=production'
|
||||
2
.github/Dockerfile_PreBuild_OC
vendored
2
.github/Dockerfile_PreBuild_OC
vendored
@ -1,6 +1,8 @@
|
||||
FROM jetty:9.4.50-jre11-alpine
|
||||
# Copy build artifact (.war file) into jetty from 'maven' stage.
|
||||
COPY /obp-api/target/obp-api-1.*.war /var/lib/jetty/webapps/ROOT.war
|
||||
# Run jetty in production mode
|
||||
ENV JAVA_OPTIONS='-Drun.mode=production'
|
||||
USER root
|
||||
RUN chgrp -R 0 /tmp/jetty && chmod -R g+rwX /tmp/jetty
|
||||
RUN chgrp -R 0 /var/lib/jetty && chmod -R g+rwX /var/lib/jetty
|
||||
|
||||
Loading…
Reference in New Issue
Block a user