Completed for a grade of four
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ FROM eclipse-temurin:21-jre-alpine
|
||||
# Distinguishes builds of the same code, e.g. the image rolled out by scripts/rolling-update.sh.
|
||||
ARG BUILD_ID=dev
|
||||
LABEL org.opencontainers.image.revision=$BUILD_ID
|
||||
RUN apk add --no-cache wget && addgroup -S app && adduser -S -G app app
|
||||
RUN apk add --no-cache wget libwebp-tools && addgroup -S app && adduser -S -G app app
|
||||
WORKDIR /app
|
||||
COPY --from=build /src/build/libs/messenger.jar /app/messenger.jar
|
||||
USER app
|
||||
|
||||
Reference in New Issue
Block a user