1
0
stack-orchestrator/container-build/cerc-watcher-mobymask/Dockerfile

28 lines
985 B
Docker
Raw Normal View History

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
2022-11-08 03:23:52 +00:00
# We use a mixture of npm and yarn below because the upstream
# project checked in an npm package-log.json file
2022-11-07 00:17:48 +00:00
RUN echo "Building assemblyscript" && \
cd assemblyscript && \
npm install && npm run build && yarn link
# TODO: needs branch v0.2.13
2022-11-08 03:23:52 +00:00
# The shenanigans below is due to yarn and lerna being a dumpster-fire
RUN echo "Linking watcher-ts to local assemblyscript" && \
2022-11-07 00:17:48 +00:00
cd watcher-ts/packages/graph-node && yarn remove @vulcanize/assemblyscript && \
2022-11-08 03:23:52 +00:00
yarn add https://github.com/vulcanize/assemblyscript.git#ng-integrate-asyncify
RUN echo "Building watcher-tst" && \
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