From deed6a7dee82c9b0414e2474fe7f18f1d5545818 Mon Sep 17 00:00:00 2001 From: Omer Sabic Date: Wed, 29 May 2024 22:30:40 +0200 Subject: [PATCH] killme --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a719a1e..eb4e664 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM node:18-alpine AS builder WORKDIR /app -COPY package*.json . +COPY package*.json ./ RUN npm ci -COPY . . +COPY . ./ RUN npm run build RUN npm prune --production @@ -10,7 +10,7 @@ FROM node:18-alpine WORKDIR /app COPY --from=builder /app/build build/ COPY --from=builder /app/node_modules node_modules/ -COPY package.json . +COPY package.json ./ EXPOSE 3000 ENV NODE_ENV=production CMD [ "node", "build" ] \ No newline at end of file