We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c6ae50 commit c8f4534Copy full SHA for c8f4534
Dockerfile
@@ -10,8 +10,9 @@ FROM base AS prod-deps
10
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
11
12
FROM base AS build
13
+ARG BUILD_MODE=production
14
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
-RUN pnpm run build
15
+RUN pnpm exec react-router build --mode ${BUILD_MODE}
16
17
FROM base
18
COPY --from=prod-deps /app/node_modules /app/node_modules
0 commit comments