Skip to content

Commit 3849cf7

Browse files
authored
Merge pull request snyk-labs#378 from ericsmalling/main
Dockerfile fix for new mvn assembly configuration for log4shell-server
2 parents be674dd + fb904b6 commit 3849cf7

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)