From e99efa6127f210260282928bf4e8ada8382d432b Mon Sep 17 00:00:00 2001 From: Leister Francisco Alvarado Campos Date: Thu, 24 Aug 2023 16:30:35 -0600 Subject: [PATCH] fix(dockerfile): copy dist instead of src directory --- hapi-evm/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hapi-evm/Dockerfile b/hapi-evm/Dockerfile index c74126ba..76e473de 100644 --- a/hapi-evm/Dockerfile +++ b/hapi-evm/Dockerfile @@ -6,11 +6,12 @@ WORKDIR /app FROM base AS builder COPY package.json yarn.lock ./ RUN yarn --ignore-optional -COPY ./dist ./src +COPY ./ ./ +RUN yarn build # ---------- Release ---------- FROM base AS release COPY --from=builder /app/node_modules ./node_modules -COPY --from=builder /app/src ./src +COPY --from=builder /app/dist ./src USER node CMD ["node", "./src/index.js"]