nabarun
98c682cdc1
Part of [Create an external stack for sushiswap subgraph watchers](https://www.notion.so/Create-an-external-stack-for-sushiswap-subgraph-watchers-932617e953b54193af25b24a578145b7) Co-authored-by: IshaVenikar <ishavenikar7@gmail.com> Reviewed-on: cerc-io/sushiswap-watcher-ts#8 Co-authored-by: nabarun <nabarun@noreply.git.vdb.to> Co-committed-by: nabarun <nabarun@noreply.git.vdb.to>
16 lines
440 B
Docker
16 lines
440 B
Docker
FROM node:18.17.1-alpine3.18
|
|
|
|
RUN apk --update --no-cache add git python3 alpine-sdk bash curl jq
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
# Get the latest Git commit hash and set in package.json
|
|
RUN COMMIT_HASH=$(git rev-parse HEAD) && \
|
|
jq --arg commitHash "$COMMIT_HASH" '.commitHash = $commitHash' package.json > tmp.json && \
|
|
mv tmp.json package.json
|
|
|
|
RUN echo "Installing dependencies and building sushiswap-watcher-ts" && \
|
|
yarn && yarn build
|