From c956b916d6a0e814b073c70ebb13170e7ca84457 Mon Sep 17 00:00:00 2001 From: LPM Date: Thu, 9 Oct 2025 10:56:20 -0400 Subject: [PATCH] Update Dockerfile to update alpine linux latest images --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b0313dd..358c432 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,15 @@ FROM alpine:latest ARG PB_VERSION=0.30.2 - ARG TARGETARCH ENV PB_VERSION=${PB_VERSION} +# Update default Alpine Linux packages that may have know CVE. +RUN apk update +RUN apk upgrade + +# Add cli utils that will allow this workflow to fetch the Pocketbase package. RUN apk add --no-cache \ curl \ unzip \ @@ -33,6 +37,7 @@ RUN case "$TARGETARCH" in \ # uncomment to copy the local pb_hooks dir into the image # COPY ./pb_hooks /pb/pb_hooks +# Unzip may contain a known CVE so lets get rid of it since we no longer need it. RUN apk del unzip EXPOSE 8080