Skip to content

Commit

Permalink
github action dockerfile wip
Browse files Browse the repository at this point in the history
  • Loading branch information
karmaking committed Jan 8, 2024
1 parent 156fa6e commit 89ad270
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/Dockerfile_PreBuild_OC
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM jetty:9.4-jdk11-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 echo $(pwd)
RUN cd ../../.github && jar uvf root.war WEB-INF/classes/logback.xml
RUN mkdir -p /WEB-INF/classes
COPY .github/logback.xml /WEB-INF/classes/
RUN cd / && jar uvf /var/lib/jetty/webapps/ROOT.war WEB-INF/classes/logback.xml
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
Expand Down
File renamed without changes.

0 comments on commit 89ad270

Please sign in to comment.