Skip to content

Commit

Permalink
Moved env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Saliovin committed Sep 6, 2024
1 parent 0204ee2 commit 814453c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM node:18-alpine AS base

ARG NEXT_BASE_API_URL
ENV NEXT_BASE_API_URL=$NEXT_BASE_API_URL

# Install dependencies only when needed
FROM base AS deps
Expand Down Expand Up @@ -30,6 +29,8 @@ COPY . .
# Uncomment the following line in case you want to disable telemetry during the build.
# ENV NEXT_TELEMETRY_DISABLED=1

ENV NEXT_BASE_API_URL=$NEXT_BASE_API_URL

RUN \
if [ -f yarn.lock ]; then yarn run build; \
elif [ -f package-lock.json ]; then npm run build; \
Expand Down

0 comments on commit 814453c

Please sign in to comment.