From c88fc2bea8232810265f2aeca9d1191f27d5c87b Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Mon, 23 Oct 2023 19:48:22 -0700 Subject: [PATCH] fix: Dockerfile issues --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1128bcc..166ce83 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,10 +13,10 @@ COPY . . RUN npm run build -ENV NODE_ENV production -RUN npm prune --production +RUN npm prune --omit=dev FROM node:20-slim as app +ENV NODE_ENV production WORKDIR /app # built src without dev dependencies COPY --from=builder /app ./ @@ -24,8 +24,8 @@ COPY --from=builder /app ./ COPY --from=builder /usr/bin/tini /usr/bin/tini # copy shared libraries (without having artifacts from apt-get install that is needed to build our application) -COPY --from=builder /usr/lib/**/libcrypto*.so /usr/lib/ -COPY --from=builder /usr/lib/**/libssl*.so /usr/lib/ +COPY --from=builder /usr/lib/**/libcrypto* /usr/lib/ +COPY --from=builder /usr/lib/**/libssl* /usr/lib/ HEALTHCHECK --interval=12s --timeout=12s --start-period=10s CMD npm run healthcheck