Closed berelton closed 2 years ago
What's the command you used to build the image?
The only time I could reproduce this error is if no arguments are passed during the build, or if the arguments were not correct (in this case, the url).
Is there any example on how to build the image with the arguments? This means that the image is built with hardcoded values related to the chain instead of passing them dynamically?
Thanks!
@randygrok in the root of the folder:
docker build \
--build-arg NEXT_PUBLIC_GRAPHQL_URL="https://gql.mainnet.desmos.network/v1/graphql" \
--build-arg NEXT_PUBLIC_GRAPHQL_WS="wss://gql-ws.mainnet.desmos.network/v1/graphql" \
--build-arg NEXT_PUBLIC_URL="https://explorer.desmos.network" \
--build-arg NEXT_PUBLIC_WS_CHAIN_URL="wss://rpc.mainnet.desmos.network/websocket" \
--build-arg NEXT_PUBLIC_CHAIN_STATUS="mainnet" \
--build-arg NODE_ENV="production" \
--build-arg PORT=3000 \
-t build-example .
This means that the image is built with hardcoded values related to the chain instead of passing them dynamically?
Yes, since the image is for production build purposes. If you need to test anything you should run it locally in dev mode first
Code source: tags/base-v1.9.0