From 8f4d88a82b8df1fbbda2daf4ea0e7bde0d190775 Mon Sep 17 00:00:00 2001 From: sapcc-bot Date: Thu, 4 May 2023 13:55:11 +0000 Subject: [PATCH] Run go-makefile-maker --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f6608812..00a86c32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,11 @@ RUN make -C /src install PREFIX=/pkg FROM alpine:3.17 -RUN addgroup -g 4200 appgroup -RUN adduser -h /home/appuser -s /sbin/nologin -G appgroup -D -u 4200 appuser -RUN apk add --no-cache --no-progress ca-certificates +RUN addgroup -g 4200 appgroup \ + && adduser -h /home/appuser -s /sbin/nologin -G appgroup -D -u 4200 appuser +# upgrade all installed packages to fix potential CVEs in advance +RUN apk upgrade --no-cache --no-progress \ + && apk add --no-cache --no-progress ca-certificates COPY --from=builder /pkg/ /usr/ ARG BININFO_BUILD_DATE BININFO_COMMIT_HASH BININFO_VERSION