diff --git a/backend/Dockerfile b/backend/Dockerfile index 54be9dd..b0e0933 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -11,6 +11,9 @@ LABEL org.opencontainers.image.source="https://github.com/the-luap/picpeak" LABEL org.opencontainers.image.description="PicPeak Backend Service" LABEL org.opencontainers.image.licenses="MIT" +# Upgrade npm to fix glob CVE-2025-64756 vulnerability +RUN npm install -g npm@latest + WORKDIR /app # Copy package files @@ -30,6 +33,9 @@ WORKDIR /app # Upgrade all packages to fix security vulnerabilities (BusyBox CVEs) RUN apk upgrade --no-cache +# Upgrade npm to fix glob CVE-2025-64756 vulnerability +RUN npm install -g npm@latest + # Install dumb-init for proper signal handling and postgresql-client for database checks RUN apk add --no-cache dumb-init postgresql-client diff --git a/frontend/Dockerfile b/frontend/Dockerfile index b003433..e200a27 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -12,6 +12,9 @@ LABEL org.opencontainers.image.source="https://github.com/the-luap/picpeak" LABEL org.opencontainers.image.description="PicPeak Frontend Application" LABEL org.opencontainers.image.licenses="MIT" +# Upgrade npm to fix glob CVE-2025-64756 vulnerability +RUN npm install -g npm@latest + # Set working directory WORKDIR /app