From e02b2e7eb118bde209aa155e1e154d88a303a6e6 Mon Sep 17 00:00:00 2001 From: Christopher Miller Date: Fri, 15 Dec 2023 16:55:09 -0800 Subject: [PATCH] update dockerfile --- api/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/Dockerfile b/api/Dockerfile index 151eb01b..16d3c400 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -12,6 +12,13 @@ FROM node:current WORKDIR /app +ADD yarn.lock . +ADD api/package.json . + +ENV NODE_ENV production + +RUN yarn install --focus + COPY --from=builder /build/api/dist /app CMD [ "node", "main.js" ] \ No newline at end of file