diff --git a/Dockerfile b/Dockerfile index 94283c1..dfb4a49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ WORKDIR /app FROM base AS build # Create app directory and copy the app -COPY package*.json tsconfig.json ./ +COPY package*.json tsconfig.json .npmrc ./ # Install RUN npm install @@ -28,7 +28,7 @@ RUN npm run build FROM node:lts-alpine # Install dependencies but skip dev dependencies -COPY --from=build /app/package*.json ./ +COPY --from=build /app/package*.json /app/.npmrc ./ RUN npm install --only=production # Copy the app