From 3cf55a9700a5349731dac4c615f8a99c46227ae0 Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Fri, 11 Mar 2022 19:10:21 +0100 Subject: [PATCH] Upgrade all the packages on the final stage This way we get latest security fixes. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a527560..8b7d4e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:1.17-alpine3.15 AS builder WORKDIR /app -RUN apk --no-cache add git +RUN apk -U --no-cache add git COPY . . @@ -12,6 +12,8 @@ FROM alpine:3.15 COPY --from=builder /app/telegram-group2mastodon /bin/telegram-group2mastodon +RUN apk -U --no-cache upgrade + RUN addgroup -S appgroup && adduser -S appuser -G appgroup USER appuser