File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ COPY --from=builder /app/src/kadena-server/config/schema.graphql ./dist/kadena-s
1515COPY --from=builder /app/src/circulating-coins/ ./dist/circulating-coins/
1616EXPOSE 3001
1717
18- ARG NODE_MODE=graphql
19-
20- # Use the build argument in CMD
21- CMD ["sh" , "-c" , "node dist/index.js --${NODE_MODE}" ]
18+ ARG INDEXER_MODE_PARAM
19+ ENV INDEXER_MODE=${INDEXER_MODE_PARAM}
20+ CMD ["sh" , "-c" , "node dist/index.js $INDEXER_MODE" ]
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ if [ -z "$1" ]; then
88fi
99
1010MODE=$1
11+ INDEXER_MODE_PARAM=" --$MODE "
1112
1213# Build the image with the specified mode
13- docker build --build-arg NODE_MODE= $MODE --no-cache -t kadindexer-ecr:$MODE .
14+ docker build --build-arg INDEXER_MODE_PARAM= $INDEXER_MODE_PARAM --no-cache -t kadindexer-ecr:$MODE .
1415
1516# Tag the image
1617docker tag kadindexer-ecr:$MODE 325501467038.dkr.ecr.us-east-1.amazonaws.com/kadindexer-ecr:$MODE
You can’t perform that action at this time.
0 commit comments