From ab2e827270378607cee648713340d63ec259bb4c Mon Sep 17 00:00:00 2001 From: Manuel Date: Mon, 28 Aug 2023 21:25:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Move=20npm=20install=20to=20top?= =?UTF-8?q?=20in=20docker=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35f90e20d..4eae4f894 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ FROM node:20-alpine WORKDIR /app +RUN npm i -g prisma + ENV NEXT_TELEMETRY_DISABLED 1 ENV NODE_ENV production ENV NODE_OPTIONS '--no-experimental-fetch' @@ -18,8 +20,6 @@ COPY prisma/schema.prisma prisma/schema.prisma COPY ./scripts/run.sh ./scripts/run.sh -RUN npm i -g prisma - EXPOSE 7575 ENV PORT 7575