From 13e8c0a97c1c791a87b4f7ac205c17c7bb61e204 Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Sat, 29 Oct 2022 16:02:21 +0100 Subject: [PATCH] Fix Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a4f4207..a13b87a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,8 @@ COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ # Uncomment the following line in case you want to disable telemetry during the build. ENV NEXT_TELEMETRY_DISABLED 1 +RUN npm i + # Build the project RUN yarn build @@ -50,7 +52,6 @@ COPY --from=builder --chown=nextjs:nodejs /app/public ./.next/static # Copy cached files COPY node_modules ./ -RUN npm i RUN chown -R nextjs:nodejs /app