diff --git a/docker/Dockerfile b/docker/Dockerfile index 434890499..230b241cc 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,10 +1,5 @@ FROM dappforce/subsocial-base-polkaverse as builder -ARG GH_SUBSTRATE_URL -ARG GH_SUBSTRATE_RPC_URL -ARG GH_OFFCHAIN_URL -ARG GH_OFFCHAIN_WS -ARG GH_IPFS_NODE_URL ARG GH_GA_ID ARG GH_CONNECTION_KIND ARG GH_APP_KIND @@ -15,18 +10,13 @@ ARG GH_OFFCHAIN_SIGNER_URL ARG GH_SELLER_CLIENT_ID ARG GH_SELLER_TOKEN_SIGNER -ENV SUBSTRATE_URL=${GH_SUBSTRATE_URL} \ - SUBSTRATE_RPC_URL=${GH_SUBSTRATE_RPC_URL} \ - OFFCHAIN_URL=${GH_OFFCHAIN_URL} \ - OFFCHAIN_WS=${GH_OFFCHAIN_WS} \ - IPFS_NODE_URL=${GH_IPFS_NODE_URL} \ - GA_ID=${GH_GA_ID} \ - APP_KIND=${GH_APP_KIND} \ - APP_BASE_URL=${GH_APP_BASE_URL} \ - HCAPTCHA_SITE_KEY=${GH_HCAPTCHA_SITE_KEY} \ - AMP_ID=${GH_AMP_ID} \ - OFFCHAIN_SIGNER_URL=${GH_OFFCHAIN_SIGNER_URL} \ - CONNECTION_KIND=${GH_CONNECTION_KIND} \ +ENV NEXT_PUBLIC_GA_ID=${GH_GA_ID} \ + NEXT_PUBLIC_APP_KIND=${GH_APP_KIND} \ + NEXT_PUBLIC_APP_BASE_URL=${GH_APP_BASE_URL} \ + NEXT_PUBLIC_HCAPTCHA_SITE_KEY=${GH_HCAPTCHA_SITE_KEY} \ + NEXT_PUBLIC_AMP_ID=${GH_AMP_ID} \ + NEXT_PUBLIC_OFFCHAIN_SIGNER_URL=${GH_OFFCHAIN_SIGNER_URL} \ + NEXT_PUBLIC_CONNECTION_KIND=${GH_CONNECTION_KIND} \ SELLER_CLIENT_ID=${GH_SELLER_CLIENT_ID} \ SELLER_TOKEN_SIGNER=${GH_SELLER_TOKEN_SIGNER} @@ -43,11 +33,6 @@ RUN NODE_ENV=production yarn build FROM gcr.io/distroless/nodejs:16 AS runner -ARG GH_SUBSTRATE_URL -ARG GH_SUBSTRATE_RPC_URL -ARG GH_OFFCHAIN_URL -ARG GH_OFFCHAIN_WS -ARG GH_IPFS_NODE_URL ARG GH_GA_ID ARG GH_CONNECTION_KIND ARG GH_APP_KIND @@ -58,17 +43,12 @@ ARG GH_OFFCHAIN_SIGNER_URL ARG GH_SELLER_CLIENT_ID ARG GH_SELLER_TOKEN_SIGNER -ENV SUBSTRATE_URL=${GH_SUBSTRATE_URL} \ - SUBSTRATE_RPC_URL=${GH_SUBSTRATE_RPC_URL} \ - OFFCHAIN_URL=${GH_OFFCHAIN_URL} \ - OFFCHAIN_WS=${GH_OFFCHAIN_WS} \ - IPFS_NODE_URL=${GH_IPFS_NODE_URL} \ - GA_ID=${GH_GA_ID} \ - APP_KIND=${GH_APP_KIND} \ - APP_BASE_URL=${GH_APP_BASE_URL} \ - AMP_ID=${GH_AMP_ID} \ - OFFCHAIN_SIGNER_URL=${GH_OFFCHAIN_SIGNER_URL} \ - CONNECTION_KIND=${GH_CONNECTION_KIND} \ +ENV NEXT_PUBLIC_GA_ID=${GH_GA_ID} \ + NEXT_PUBLIC_APP_KIND=${GH_APP_KIND} \ + NEXT_PUBLIC_APP_BASE_URL=${GH_APP_BASE_URL} \ + NEXT_PUBLIC_AMP_ID=${GH_AMP_ID} \ + NEXT_PUBLIC_OFFCHAIN_SIGNER_URL=${GH_OFFCHAIN_SIGNER_URL} \ + NEXT_PUBLIC_CONNECTION_KIND=${GH_CONNECTION_KIND} \ SELLER_CLIENT_ID=${GH_SELLER_CLIENT_ID} \ SELLER_TOKEN_SIGNER=${GH_SELLER_TOKEN_SIGNER}