From c0e70b192c1d1cec2327b2b8761585a889fa0ab7 Mon Sep 17 00:00:00 2001 From: Papais <8097453+LeoPapais@users.noreply.github.com> Date: Mon, 6 May 2024 15:59:03 -0300 Subject: [PATCH] chore: hoisting npm ci --- src/boilerplate/common/boilerplate-Dockerfile | 10 +++++++++- src/boilerplate/common/boilerplate-Dockerfile.deployer | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/boilerplate/common/boilerplate-Dockerfile b/src/boilerplate/common/boilerplate-Dockerfile index e948826a8..969c5b4bd 100644 --- a/src/boilerplate/common/boilerplate-Dockerfile +++ b/src/boilerplate/common/boilerplate-Dockerfile @@ -4,5 +4,13 @@ WORKDIR /app COPY ./package.json ./package-lock.json ./ -RUN npm ci +RUN npm i +COPY circuits ./circuits +COPY config ./config +COPY build/contracts ./build/contracts +COPY orchestration ./orchestration +COPY proving-files ./proving-files + EXPOSE 3000 + +CMD ["node", "orchestration/api.mjs"] diff --git a/src/boilerplate/common/boilerplate-Dockerfile.deployer b/src/boilerplate/common/boilerplate-Dockerfile.deployer index 76b89c802..9c978fc09 100644 --- a/src/boilerplate/common/boilerplate-Dockerfile.deployer +++ b/src/boilerplate/common/boilerplate-Dockerfile.deployer @@ -6,10 +6,10 @@ RUN apt-get update -y RUN apt-get install -y netcat-openbsd COPY ./package.json ./package-lock.json ./ +RUN npm ci COPY entrypoint.sh entrypoint.sh COPY contracts contracts COPY migrations migrations COPY truffle-config.js truffle-config.js RUN chmod +x entrypoint.sh -RUN npm ci ENTRYPOINT ["./entrypoint.sh"]