Skip to content

Commit 4663923

Browse files
authored
Provide VITE_GOOGLE_API_KEY to client production build (#671)
1 parent 6983204 commit 4663923

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ COPY . /app
99
WORKDIR /app
1010

1111
FROM client AS build
12+
13+
ARG VITE_GOOGLE_API_KEY
14+
ENV VITE_GOOGLE_API_KEY=$VITE_GOOGLE_API_KEY
15+
1216
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
1317
RUN pnpm run build -- --mode=production
1418

0 commit comments

Comments
 (0)