2022-11-06 17:11:42 +00:00
|
|
|
# TODO: move this into the cerc-io/mobymask-watcher repo
|
|
|
|
FROM node:16.17.1-alpine3.16
|
|
|
|
|
2022-11-07 00:17:48 +00:00
|
|
|
RUN apk --update --no-cache add git python3 alpine-sdk
|
|
|
|
|
2022-11-06 17:11:42 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
2022-11-07 00:17:48 +00:00
|
|
|
COPY assemblyscript assemblyscript
|
|
|
|
COPY watcher-ts watcher-ts
|
|
|
|
|
|
|
|
# TODO: needs branch ng-integrate-asyncify
|
|
|
|
# TODO: why are we mixing npm and yarn below?
|
|
|
|
RUN echo "Building assemblyscript" && \
|
|
|
|
cd assemblyscript && \
|
|
|
|
npm install && npm run build && yarn link
|
|
|
|
|
|
|
|
# TODO: needs branch v0.2.13
|
|
|
|
RUN echo "Building watcher-ts" && \
|
|
|
|
cd watcher-ts/packages/graph-node && yarn remove @vulcanize/assemblyscript && \
|
|
|
|
yarn add https://github.com/vulcanize/assemblyscript.git#ng-integrate-asyncify && \
|
|
|
|
cd ../../../watcher-ts && yarn && yarn link "@vulcanize/assemblyscript" && yarn build
|
2022-11-06 17:11:42 +00:00
|
|
|
|
2022-11-07 00:17:48 +00:00
|
|
|
WORKDIR /app/watcher-ts/packages/mobymask-watcher
|