Dockerfile.deploy 742 B

12345678910111213141516171819202122
  1. FROM const-gen AS const-export
  2. # This is a multi-stage docker file:
  3. # 1. The first stage contains the built contracts (wasm files)
  4. # 2. The second creates a node.js environment to deploy the contracts to devnet
  5. # local cosmwasm image, built by tilt
  6. FROM cosmwasm_artifacts AS artifacts
  7. # Contract deployment stage
  8. FROM node:22.16-bullseye-slim@sha256:550b434f7edc3a1875860657a3e306752358029c957280809ae6395ab296faeb
  9. RUN apt update && apt install netcat curl jq -y
  10. WORKDIR /app/tools
  11. COPY --from=artifacts / /app/artifacts
  12. COPY ./tools/package.json ./tools/package-lock.json /app/tools/
  13. RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
  14. npm ci
  15. COPY ./tools /app/tools
  16. COPY --from=const-export .env /app/tools/.env