feat: Dockerfile to support custom rpc,rest,network,gql params

This commit is contained in:
Andrey Arapov 2023-02-27 19:49:11 +01:00
parent 838c9e8d40
commit 48ff74fff1
No known key found for this signature in database
GPG Key ID: 9076D5E6B31AE99C

View File

@ -1,5 +1,13 @@
FROM node:19-alpine as builder FROM node:19-alpine as builder
WORKDIR /app WORKDIR /app
# This overrides the parameters during the build time.
# You have to do this as passing env variables alone (or via .env file) is not enough.
ARG NEXT_PUBLIC_RPC=https://rpc-osmosis.blockapsis.com
ARG NEXT_PUBLIC_REST=https://lcd-osmosis.blockapsis.com
ARG NEXT_PUBLIC_NETWORK=mainnet
ARG NEXT_PUBLIC_GQL=https://rpc-osmosis.blockapsis.com
COPY package.json yarn.lock ./ COPY package.json yarn.lock ./
RUN yarn install RUN yarn install
COPY . . COPY . .