From ef20bdacd811401229d6553875e897cb4edc5b0e Mon Sep 17 00:00:00 2001 From: Felipe Fink Grael Date: Mon, 22 Jan 2024 10:58:20 -0300 Subject: [PATCH] build: Install cartesi-client by generating and using tarball --- frontend/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 907fb26..d4ec2cb 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -11,15 +11,15 @@ RUN \ git clone -b feature/types-and-standardizations --depth 1 https://github.com/prototyp3-dev/cartesi-client.git && \ cd cartesi-client && \ npm clean-install && \ - npm run build + npm run build && \ + npm pack . # Install dependencies WORKDIR /app COPY package.json package-lock.json* ./ RUN \ npm clean-install && \ - npm install --no-save --install-links /opt/cartesi-client/cartesi-client && \ - npm install --no-save "@cartesi/rollups@^1.1.0" "@urql/core@^4.1.4" "@urql/exchange-retry@^1.2.0" "urql@^4.0.5" + npm install /opt/cartesi-client/cartesi-client/cartesi-client*.tgz # Rebuild the source code only when needed