Skip to content

Commit

Permalink
bug [proxy-service] Change docker image to a pinned version and use g…
Browse files Browse the repository at this point in the history
…radlew for building

The gradle version used in "gradle:jdk8" was updated to version 8.x, causing the build to fail.
We are using now a pinned openjdk image and use the gradle wrapper to download and build with the desired gradle version 6.8.3.
  • Loading branch information
MfCrizz committed Mar 9, 2023
1 parent 8691598 commit c55a40b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/proxy-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM gradle:jdk8 as builder
FROM openjdk:8u111-jdk-alpine as builder

COPY --chown=gradle:gradle . /home/gradle/src
COPY . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle build
RUN ./gradlew build
RUN ls build/libs/

# force JDK < 8u121 to provoke CVE-2021-44228 10.0 RCE in log4j < 2.4.1
Expand Down

0 comments on commit c55a40b

Please sign in to comment.