steer-protocol-watcher-ts/stacks/stack-orchestrator/container-build/cerc-watcher-steer-protocol/Dockerfile
Nabarun f1bfb2333b Add stack for steer-protocol watcher (#1)
Part of https://www.notion.so/FEVM-Subgraph-Production-Deployment-089a34a10010495b9ccb5cd878c1bbe9

Reviewed-on: #1
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2024-10-14 12:37:27 +00:00

16 lines
445 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 steer-protocol-watcher-ts" && \
yarn && yarn build