very tired

This commit is contained in:
2024-10-12 23:07:01 +07:00
parent 633d2feb8f
commit 5c40a2fd53

View File

@@ -3,28 +3,14 @@ FROM node:20 AS node_base
# Set the working directory # Set the working directory
WORKDIR /app WORKDIR /app
FROM node_base AS node_modules
# Copy the package.json and package-lock.json
COPY package*.json ./
# Enable legacy peer deps # Enable legacy peer deps
RUN npm config set legacy-peer-deps true RUN npm config set legacy-peer-deps true
COPY . .
# Install the dependencies # Install the dependencies
RUN npm install 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 # Generate the Prisma client
RUN npm run prisma:generate RUN npm run prisma:generate