2022-10-27 06:16:20 -07:00
|
|
|
FROM ghcr.io/wormhole-foundation/near:0.2@sha256:c2089c5e93df2396d74f9c07e7cd3d76983fad97bddb202030ca442c2c00c3c2 AS near-contracts
|
2022-08-04 08:52:26 -07:00
|
|
|
|
|
|
|
RUN mkdir -p /.npm /home/node/appa /home/node/.npm
|
|
|
|
WORKDIR /home/node/app
|
|
|
|
RUN chown -R 1000:1000 /home/node
|
|
|
|
RUN chown -R 1000:1000 /.npm
|
|
|
|
|
|
|
|
USER 1000
|
|
|
|
|
|
|
|
ADD --chown=1000:1000 package.json .
|
|
|
|
ADD --chown=1000:1000 package-lock.json .
|
|
|
|
ADD --chown=1000:1000 .env .env
|
|
|
|
|
|
|
|
RUN npm ci
|
|
|
|
|
|
|
|
ADD --chown=1000:1000 devnet_deploy.* .
|
|
|
|
ADD --chown=1000:1000 ./contracts/*/target/wasm32-unknown-unknown/release/*.wasm .
|
|
|
|
|