This commit is contained in:
Gnarwhal 2024-10-06 18:46:49 +00:00
parent cc5e6acb6a
commit ad16ec438b
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
2 changed files with 2 additions and 28 deletions

View file

@ -22,14 +22,14 @@ ENV NEXT_TELEMETRY_DISABLED=0
RUN yarn run build;
# Production image, copy all the files and run next
FROM base AS runner
FROM chimeralinux/chimera:latest AS runner
RUN apk add nodejs shadow
WORKDIR /app
ENV NODE_ENV=production
# Uncomment the following line in case you want to disable telemetry during runtime.
ENV NEXT_TELEMETRY_DISABLED=1
RUN apk add shadow
RUN groupadd --system --gid 1001 nodejs
RUN useradd --system --uid 1001 nextjs