Merge pull request #15 from arno01/update-dockerfile

feat: Dockerfile to support custom rpc,rest,network,gql params
This commit is contained in:
Linkie Link 2023-02-27 22:01:11 +01:00 committed by GitHub
commit 4fdd0782e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,13 @@
FROM node:19-alpine as builder
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 ./
RUN yarn install
COPY . .