OBP-API/.github/Dockerfile_PreBuild_OC
2023-01-23 13:36:32 +01:00

10 lines
442 B
Plaintext

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
RUN chgrp -R 0 /usr/local/jetty && chmod -R g+rwX /usr/local/jetty
USER jetty