Updating Docker files to reflect new naming of the server standalone jar

This commit is contained in:
Nanne Baars 2017-03-22 17:43:46 +01:00
parent 90eee0e2d8
commit 7f9af71c4c
3 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.war</include>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
</configuration>
@ -62,7 +62,7 @@
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.war</include>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
</configuration>

View File

@ -1,6 +1,6 @@
FROM openjdk:8-jre
VOLUME /tmp
RUN cd /root; mkdir -p .webgoat
ADD webgoat-container-8.0-SNAPSHOT.war webgoat.jar
ADD webgoat-server-8.0-SNAPSHOT.jar webgoat.jar
RUN sh -c 'touch /webgoat.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/webgoat.jar"]

View File

@ -5,6 +5,6 @@ VOLUME /tmp
RUN apt-get update && apt-get install -y \
openjdk-8-jre-headless
RUN cd /root; mkdir -p .webgoat
ADD webgoat-container-8.0-SNAPSHOT.war webgoat.jar
ADD webgoat-server-8.0-SNAPSHOT.jar webgoat.jar
RUN sh -c 'touch /webgoat.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/webgoat.jar"]