summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 63481f7..3381117 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,13 +1,13 @@
-# Stage 1: Build the JAR file
+# Stage 1: BUILD
FROM maven:3.8.5-openjdk-17 AS build
WORKDIR /app
COPY mvnw pom.xml ./
COPY .mvn .mvn
COPY src src
RUN chmod +x mvnw
-RUN ./mvnw clean package -Dmaven.test.skip=true
+RUN ./mvnw clean package -q -Dmaven.test.skip=true
-# Stage 2: Run the JAR file
+# Stage 2: RUN
FROM openjdk:17-alpine
RUN addgroup -S spring && adduser -S spring -G spring
USER spring:spring