From 06a3f81f3813fbdf7169e15a7d6ab181ae363efb Mon Sep 17 00:00:00 2001 From: Gustavo Valverde Date: Sun, 15 Oct 2023 11:53:01 +0100 Subject: [PATCH] fix(build): docker --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ee38d726..3c136978 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,8 +54,8 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile # ===================== App Runner Stage ===================== FROM base AS runner -RUN addgroup -g 1001 -S nodejs && \ - adduser -S nextjs -u 1001 +RUN addgroup --gid 1001 --system nodejs && \ + adduser --system --no-create-home --uid 1001 nextjs # Copy all necessary files COPY --from=build ${WORK_DIR}/public ./public