From 1aff6554b5749c0fc33d3ee0667a2cfda3ca4210 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 17 Aug 2024 16:37:29 +0200 Subject: [PATCH] Copy `node_modules` over to runtime image --- Containerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Containerfile b/Containerfile index accbbbc..942f3ab 100644 --- a/Containerfile +++ b/Containerfile @@ -13,5 +13,6 @@ RUN chown -R node:node /app USER node:node COPY ./container/entrypoint.sh /entrypoint.sh COPY package.json . +COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/build ./build ENTRYPOINT ["sh", "/entrypoint.sh"]