From bc7d7f901d77f1d8e857b7a0a4c7783f3452713d Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Sun, 10 Nov 2024 07:57:45 +1300 Subject: [PATCH] Chore: Upgrade Alpine packages on Docker build --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c104609..604e458 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ COPY . /app WORKDIR /app -RUN apk add --no-cache git npm && \ +RUN apk upgrade && apk add git npm && \ npm install && npm run package && \ CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/axllent/mailpit/config.Version=${VERSION}" -o /mailpit @@ -21,7 +21,7 @@ LABEL org.opencontainers.image.title="Mailpit" \ COPY --from=builder /mailpit /mailpit -RUN apk add --no-cache tzdata +RUN apk upgrade --no-cache && apk add --no-cache tzdata EXPOSE 1025/tcp 1110/tcp 8025/tcp