Skip to content

Commit

Permalink
Add NEXT_PUBLIC_NETWORK arg in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mesudip committed Nov 18, 2024
1 parent de8006a commit 779a9f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM node:20-alpine AS builder
ARG NPM_AUTH_TOKEN
ARG NEXT_PUBLIC_NETWORK
WORKDIR /app
RUN npm install -g prisma
COPY ./package.json ./package-lock.json ./
Expand All @@ -10,6 +11,7 @@ COPY --chown=node:node . .


ENV NEXT_PUBLIC_NODE_ENV=production
ENV NEXT_PUBLIC_NETWORK=${NEXT_PUBLIC_NETWORK}

RUN npm run build
RUN rm -rf ./.next/cache/* && mkdir moveTarget && mv public ./moveTarget
Expand All @@ -21,6 +23,7 @@ WORKDIR /app
USER node

ENV NODE_ENV=production NEXT_TELEMETRY_DISABLED=1

EXPOSE 3000


Expand Down

0 comments on commit 779a9f2

Please sign in to comment.