2024-05-30 14:11:40 -07:00
FROM ghcr.io/foundry-rs/foundry:nightly-ea2eff95b5c17edd3ffbdfc6daab5ce5cc80afc0@sha256:2a774f86765258a0d176366fc46f92bc14f5040faae7a3c3ba59b1c24c5fa7cb as foundry
2023-06-13 12:36:13 -07:00
FROM node:19.6.1-slim@sha256:a1ba21bf0c92931d02a8416f0a54daad66cb36a85d2b73af9d73b044f5f57cfc
2022-02-08 00:55:10 -08:00
2023-06-13 12:36:13 -07:00
RUN apt-get update && apt-get -y install \
2024-03-12 13:48:32 -07:00
git python3 make curl netcat vim
2023-06-13 12:36:13 -07:00
RUN npm i typescript -g
2024-05-30 14:11:40 -07:00
COPY --from= foundry /usr/local/bin/forge /bin/forge
2022-02-10 12:05:02 -08:00
2022-02-08 00:55:10 -08:00
RUN mkdir -p /app
WORKDIR /app
2022-02-11 20:01:11 -08:00
COPY ethereum/package.json ethereum/package-lock.json ./ethereum/
2022-02-08 00:55:10 -08:00
RUN --mount= type = cache,uid= 1000,gid= 1000,target= /home/node/.npm \
2023-05-19 17:34:06 -07:00
npm ci --prefix ethereum
2022-02-11 20:01:11 -08:00
COPY ethereum ./ethereum
2022-02-08 00:55:10 -08:00
2024-04-11 05:46:36 -07:00
COPY relayer/ethereum/package.json relayer/ethereum/package-lock.json ./relayer/ethereum/
RUN --mount= type = cache,uid= 1000,gid= 1000,target= /home/node/.npm \
npm ci --prefix relayer/ethereum
COPY relayer/ethereum ./relayer/ethereum
2022-10-26 07:28:46 -07:00
COPY solana/idl ./solana/idl/
2022-02-11 20:01:11 -08:00
COPY sdk/js/package.json sdk/js/package-lock.json ./sdk/js/
2022-02-08 00:55:10 -08:00
RUN --mount= type = cache,uid= 1000,gid= 1000,target= /home/node/.npm \
2023-05-19 17:34:06 -07:00
npm ci --prefix sdk/js
2022-02-11 20:01:11 -08:00
COPY sdk/js ./sdk/js
RUN npm run build --prefix sdk/js
2022-02-08 00:55:10 -08:00
2022-02-11 20:01:11 -08:00
COPY testing ./testing
2022-02-08 00:55:10 -08:00
2022-02-11 20:01:11 -08:00
WORKDIR /app/testing