From e8ee4afb36ac04533a07437b8323c5f96bdc28a3 Mon Sep 17 00:00:00 2001 From: Vaica <94612053+zqlit@users.noreply.github.com> Date: Mon, 22 Jun 2026 01:07:16 +0800 Subject: [PATCH] Update Dockerfile --- write-server/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/write-server/Dockerfile b/write-server/Dockerfile index 5ad4c57a..37443578 100644 --- a/write-server/Dockerfile +++ b/write-server/Dockerfile @@ -35,13 +35,15 @@ RUN npm run build FROM node:20-alpine AS runner WORKDIR /app -# Install specific Hugo version, git, ssh and su-exec +# Install system dependencies first +RUN apk add --no-cache git openssh-client su-exec + +# Install specific Hugo version ARG HUGO_VERSION=0.128.2 RUN wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz -O /tmp/hugo.tar.gz && \ tar -xzf /tmp/hugo.tar.gz -C /tmp && \ mv /tmp/hugo /usr/local/bin/hugo && \ - rm /tmp/hugo.tar.gz && \ - apk add --no-cache git openssh-client su-exec + rm /tmp/hugo.tar.gz # Create non-root user RUN addgroup --system --gid 1001 nodejs && \