Skip to content

Commit 8fa4dd2

Browse files
committed
fix: passing api url in dockerfile
1 parent e94095d commit 8fa4dd2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ ENV NODE_ENV=production
77
COPY package.json yarn.lock ./
88
RUN yarn install --frozen-lockfile
99

10+
# Pass in NEXT_PUBLIC_API_BASE_URL from Docker build args
11+
# TODO: add MSS args later...
12+
ARG NEXT_PUBLIC_API_BASE_URL
13+
ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL
14+
1015
# Copy source and build
1116
COPY . .
1217
RUN yarn build

0 commit comments

Comments
 (0)