From dee72440bb2b44f1a3c7058cc8b753a19be5fe8e Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Thu, 22 Oct 2020 21:46:40 +0200 Subject: [PATCH] Fix docker build --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f4974ae..8235d03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,10 +4,9 @@ RUN npm install -g npm@7 WORKDIR /app COPY . . -RUN npm install --legacy-peer-deps +RUN npm install RUN npm run build - FROM node:14.13.0-alpine3.10 WORKDIR /app @@ -16,7 +15,7 @@ ENV NODE_ENV=production COPY backend/package.json . RUN npm install --production -COPY --from=build backend/dist/main.js main.js +COPY --from=build /app/backend/dist/main.js main.js EXPOSE 3000