From 14edf629bd0e2de9fdece6333f92eba722db754a Mon Sep 17 00:00:00 2001 From: Ly Tuan Kiet Date: Thu, 5 Dec 2024 18:42:16 +0700 Subject: [PATCH] chore: update Dockerfile to include .nvmrc and .npmrc files - Added .nvmrc and .npmrc files to the Docker image for consistent Node.js versioning and npm configuration. - Removed the direct copy of the prisma directory to streamline the build process. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4c712e5..c0e374a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,9 +34,12 @@ WORKDIR /app # Copy only necessary files with minimal layers COPY --from=dependencies /app/node_modules ./node_modules COPY --from=builder /app/dist ./dist -COPY --from=builder /app/prisma ./prisma COPY --from=builder /app/package*.json ./ +# mount nvmrc and npmrc from host +COPY .nvmrc ./ +COPY .npmrc ./ + # Expose the port EXPOSE 3000