Skip to content

Commit 1b7dd57

Browse files
authored
Merge pull request #313 from sir-gon/develop
[Docker] Parametric base image version.
2 parents f45af17 + 37fa262 commit 1b7dd57

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
ARG BUILDTIME_IMAGE=gradle:8.14.0-jdk21-alpine
2+
ARG RUNTIME_IMAGE=eclipse-temurin:24.0.1_9-jre-alpine
3+
14
###############################################################################
2-
FROM gradle:8.14.0-jdk21-alpine AS base
5+
FROM ${BUILDTIME_IMAGE} AS base
36

47
RUN apk add --update --no-cache make \
58
# FIX CVE-2024-5535
@@ -94,7 +97,8 @@ CMD ["make", "test"]
9497
## in the production phase, "good practices" such as
9598
## WORKDIR and USER are maintained
9699
##
97-
FROM eclipse-temurin:24.0.1_9-jre-alpine AS production
100+
101+
FROM ${RUNTIME_IMAGE} AS production
98102

99103
RUN apk add --update --no-cache make \
100104
# FIX CVE-2024-5535

0 commit comments

Comments
 (0)