Prathamesh Musale
f6ed97a044
Part of [Generate secured-finance subgraph watcher with codegen](https://www.notion.so/Generate-secured-finance-subgraph-watcher-with-codegen-2923413e0af54ea787c5435d6966f3bb) Reviewed-on: #1 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
16 lines
446 B
Docker
16 lines
446 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 secured-finance-watcher-ts" && \
|
|
yarn && yarn build
|