diff --git a/.env.example b/.env.example index 5bc5066c..b69d9c88 100644 --- a/.env.example +++ b/.env.example @@ -33,7 +33,7 @@ HASURA_GRAPHQL_ACTION_BASE_URL=http://hapi:9090 # WEBAPP REACT_APP_RATING_CONTRACT=rateproducer REACT_APP_MAINNET_VERSION=true -REACT_APP_EDEN_CONTRACT=genesis.eden // if is jungle genesisdeden +REACT_APP_EDEN_CONTRACT=genesis.eden REACT_APP_GRAPHQL_HTTP_URL=http://localhost:8080/v1/graphql REACT_APP_API_URL=https://jungle.eosio.cr REACT_APP_GRAPHQL_WS_URL=ws://localhost:8080/v1/graphql diff --git a/webapp/Dockerfile b/webapp/Dockerfile index 71e42241..d5faea34 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -1,8 +1,11 @@ FROM node:12-slim as builder ARG branch +ARG REACT_APP_RATING_CONTRACT ARG REACT_APP_GRAPHQL_HTTP_URL ARG REACT_APP_API_URL +ARG REACT_APP_EDEN_CONTRACT +ARG REACT_APP_MAINNET_VERSION ARG REACT_APP_GRAPHQL_WS_URL ARG REACT_APP_EOS_API_URL ARG REACT_APP_EOS_API_HOST @@ -12,8 +15,11 @@ ARG REACT_APP_EOS_CHAIN_ID ARG REACT_APP_BLOCK_EXPLORER ARG REACT_APP_NETWORK_MONITOR_URL +ENV REACT_APP_RATING_CONTRACT $REACT_APP_RATING_CONTRACT ENV REACT_APP_GRAPHQL_HTTP_URL $REACT_APP_GRAPHQL_HTTP_URL ENV REACT_APP_API_URL $REACT_APP_API_URL +ENV REACT_APP_EDEN_CONTRACT $REACT_APP_EDEN_CONTRACT +ENV REACT_APP_MAINNET_VERSION $REACT_APP_MAINNET_VERSION ENV REACT_APP_GRAPHQL_WS_URL $REACT_APP_GRAPHQL_WS_URL ENV REACT_APP_EOS_API_URL $REACT_APP_EOS_API_URL ENV REACT_APP_EOS_API_HOST $REACT_APP_EOS_API_HOST