From 5c40a2fd53bd1b17277ff2b0326d9432e0f985a1 Mon Sep 17 00:00:00 2001 From: Ly Tuan Kiet Date: Sat, 12 Oct 2024 23:07:01 +0700 Subject: [PATCH] very tired --- Dockerfile | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18f9fa3..11b3a5d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,28 +3,14 @@ FROM node:20 AS node_base # Set the working directory WORKDIR /app -FROM node_base AS node_modules - -# Copy the package.json and package-lock.json -COPY package*.json ./ - # Enable legacy peer deps RUN npm config set legacy-peer-deps true +COPY . . + # Install the dependencies RUN npm install -FROM node_base AS build - -# Copy the source code - -COPY . . - -FROM build AS runtime - -# Copy the node_modules - -COPY --from=node_modules /app/node_modules ./node_modules # Generate the Prisma client RUN npm run prisma:generate