Fix docker startup

Allow docker running from Makefile
This commit is contained in:
2026-05-31 17:48:25 -06:00
parent 92a2013b05
commit 925195ec13
2 changed files with 16 additions and 2 deletions

View File

@@ -1,8 +1,17 @@
FROM maven:3.9-eclipse-temurin-21-alpine AS build
WORKDIR /workspace
COPY pom.xml .
COPY src/main ./src/main
RUN mvn -DskipTests package
FROM eclipse-temurin:21-jre-alpine
WORKDIR /app
COPY target/notesvault-0.0.1-SNAPSHOT.jar app.jar
COPY --from=build /workspace/target/notesvault-0.0.1-SNAPSHOT.jar app.jar
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser