Skip to content

Commit

Permalink
Changed dockerfile to correct api war file compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
zachsents authored Mar 20, 2024
1 parent 9c1eb72 commit 24c99f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ RUN mkdir -p WebContent/WEB-INF/classes
RUN javac -source 1.8 -target 1.8 -sourcepath src -d WebContent/WEB-INF/classes -cp ".:WebContent/WEB-INF/lib/*:/usr/local/tomcat/lib/*" src/**/*.java

# build WAR file -- directly into tomcat webapps directory
RUN jar -cf /usr/local/tomcat/webapps/api.war WebContent/*

# modified to set cwd of command to WebContent instead of including it in glob pattern
RUN jar -cf /usr/local/tomcat/webapps/api.war -C WebContent .

WORKDIR /usr/local/tomcat

Expand Down

0 comments on commit 24c99f0

Please sign in to comment.