Skip to content

Commit

Permalink
fix: added env to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Meyanis95 committed Sep 23, 2024
1 parent 79e752e commit 1791bc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ RUN apt-get update ; apt-get install -y netcat-openbsd
WORKDIR /app

ARG NEXT_PUBLIC_ISSUER_URL
ARG NEXT_PUBLIC_NULLIFIER_SEED
RUN echo "NEXT_PUBLIC_ISSUER_URL: $NEXT_PUBLIC_ISSUER_URL"
RUN echo "NEXT_PUBLIC_NULLIFIER_SEED: $NEXT_PUBLIC_NULLIFIER_SEED"

COPY package*.json ./

RUN npm install

COPY . .

RUN NEXT_PUBLIC_ISSUER_URL=$NEXT_PUBLIC_ISSUER_URL npm run build
RUN NEXT_PUBLIC_ISSUER_URL=$NEXT_PUBLIC_ISSUER_URL NEXT_PUBLIC_NULLIFIER_SEED=$NEXT_PUBLIC_NULLIFIER_SEED npm run build

CMD ["npm", "start"]

0 comments on commit 1791bc5

Please sign in to comment.