create logs directory in Dockerfile for kontor-spring

This commit is contained in:
2025-12-21 19:27:49 +01:00
parent e0a235fcc5
commit d3ccc2a46b
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -12,10 +12,12 @@ RUN gradle bootJar --no-daemon
# ----------------------------------------------------------------------- #
FROM alpine/java:21-jdk AS run
RUN mkdir -p /logs
RUN adduser --system appuser
USER appuser
COPY --from=builder --chown=appuser:appuser /build/libs/kontor-spring-0.2.0-SNAPSHOT.jar app.jar
RUN chown appuser:root /logs
EXPOSE 8100
USER appuser