From 3529e46b11f6f9bfac2a6a0d460ad180dc17738e Mon Sep 17 00:00:00 2001 From: Chris <15677803+c00ldude1oo@users.noreply.github.com> Date: Sun, 15 May 2022 19:17:02 -0400 Subject: [PATCH] :fire: Remove unneeded lines Removed adduser and addgroup since they aren't needed. --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95fbce619..98fe3bdbe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,13 @@ FROM node:16-alpine WORKDIR /app ENV NODE_ENV production -RUN addgroup --system --gid 1001 nodejs -RUN adduser --system --uid 1001 nextjs - COPY /next.config.js ./ COPY /public ./public COPY /package.json ./package.json - -# Automatically leverage output traces to reduce image size -# https://nextjs.org/docs/advanced-features/output-file-tracing +# Automatically leverage output traces to reduce image size. https://nextjs.org/docs/advanced-features/output-file-tracing COPY /.next/standalone ./ COPY /.next/static ./.next/static - EXPOSE 7575 ENV PORT 7575 VOLUME /app/data/configs -CMD ["node", "server.js"] \ No newline at end of file +CMD ["node", "server.js"]