We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 201717b commit 833cc08Copy full SHA for 833cc08
k8s/docker/Dockerfile
@@ -1,5 +1,4 @@
1
-# Build Stage
2
-FROM eclipse-temurin:21-jdk AS build
+FROM eclipse-temurin:21-jdk AS base
3
MAINTAINER daynnnnn
4
5
# Setting environment variables
@@ -12,6 +11,9 @@ ARG DB_PASSWORD
12
11
ARG DB_DATABASE
13
ARG DB_PORT
14
+# Build Stage
15
+FROM base as build
16
+
17
# Set the working directory for the build stage
18
WORKDIR /code
19
@@ -37,7 +39,7 @@ RUN chmod +x mvnw
37
39
RUN ./mvnw clean package -Pkubernetes -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2"
38
40
41
# Release Stage
-FROM eclipse-temurin:21-jdk AS release
42
+FROM base AS release
43
44
# Copy relevant files from the build stage
45
COPY --from=build /code/target/steve.jar /app/steve.jar
0 commit comments