Skip to content

Commit c8f4534

Browse files
committed
Dockerfile에서 베타 빌드 지원
1 parent 9c6ae50 commit c8f4534

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ FROM base AS prod-deps
1010
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
1111

1212
FROM base AS build
13+
ARG BUILD_MODE=production
1314
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
14-
RUN pnpm run build
15+
RUN pnpm exec react-router build --mode ${BUILD_MODE}
1516

1617
FROM base
1718
COPY --from=prod-deps /app/node_modules /app/node_modules

0 commit comments

Comments
 (0)