Skip to content

Commit

Permalink
fix: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Tien Nam Dao committed Nov 22, 2022
1 parent 97ab657 commit 88bcbff
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NEXT_PUBLIC_COSMOS_API=https://chainindexing.astranaut.io
NEXT_PUBLIC_EVM_API=https://blockscout.astranaut.io
NEXT_PUBLIC_URL=https://explorer.astranaut.io
NEXT_PUBLIC_CHAIN_ID=11110
NEXT_PUBLIC_TITLE=Astra Explorer
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-VT2FQJPB7L
6 changes: 6 additions & 0 deletions .env.stagging
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
NEXT_PUBLIC_COSMOS_API=https://chainindexing.astranaut.dev
NEXT_PUBLIC_EVM_API=https://blockscout.astranaut.dev
NEXT_PUBLIC_URL=https://explorer.astranaut.dev
NEXT_PUBLIC_CHAIN_ID=11115
NEXT_PUBLIC_TITLE=Astra Explorer Testnet
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XNDN41NMWF
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ node_modules/
.next/
.DS_STORE
.env
.env.*
package-lock.json
yarn-error.log
.sentryclirc
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ RUN GITHUB_PACKAGE_TOKEN=${GITHUB_TOKEN} yarn --frozen-lockfile
FROM node:18-alpine AS builder
WORKDIR /app
ARG SENTRY_AUTH_TOKEN
ARG NEXT_PUBLIC_COSMOS_API
ARG NEXT_PUBLIC_EVM_API
ARG NEXT_PUBLIC_URL
ARG NEXT_PUBLIC_CHAIN_ID
ARG NEXT_PUBLIC_TITLE
ARG NEXT_PUBLIC_GA_MEASUREMENT_ID

COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/ ./
COPY . .
Expand Down

0 comments on commit 88bcbff

Please sign in to comment.