Create Dockerfile_PreBuild_OC

This commit is contained in:
tesobe-daniel 2023-11-24 17:41:27 +01:00 committed by GitHub
parent 2c266174d6
commit a749460d41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
.github/Dockerfile_PreBuild_OC vendored Normal file
View File

@ -0,0 +1,10 @@
FROM jetty:9.4.49-jre11-alpine
# Copy OBP source code
# Copy build artifact (.war file) into jetty from 'maven' stage.
COPY /target/API_Explorer-1.0.war /var/lib/jetty/webapps/ROOT.war
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