Skip to content

Commit fb904b6

Browse files
author
Eric
committed
Dockerfile changes to work with new mvn assembly configuration for log4shell-server
Fixes snyk-labs#377
1 parent be674dd commit fb904b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

log4shell-goof/log4shell-server/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM maven:3-jdk-8-slim as build
22
COPY pom.xml pom.xml
33
COPY src src
4-
RUN --mount=target=$HOME/.m2,type=cache mvn clean compile assembly:single
4+
RUN --mount=target=$HOME/.m2,type=cache mvn clean package
55

66
FROM openjdk:8 as ldap
7-
COPY --from=build target/*.jar /server.jar
7+
COPY --from=build target/log4shell-server-*-jar-with-dependencies.jar /server.jar
88
EXPOSE 8000
99
EXPOSE 9999
1010

0 commit comments

Comments
 (0)