This commit is contained in:
parent
234e7fbcd7
commit
ed8ae5687c
|
|
@ -16,13 +16,16 @@ RUN pnpm install --frozen-lockfile
|
||||||
# Rebuild the source code only when needed
|
# Rebuild the source code only when needed
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
|
||||||
COPY frontend .
|
|
||||||
|
|
||||||
# Enable pnpm
|
# Enable pnpm
|
||||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||||
|
|
||||||
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
|
COPY frontend .
|
||||||
|
|
||||||
|
# Accept BACKEND_URL as build argument
|
||||||
|
ARG BACKEND_URL
|
||||||
|
ENV BACKEND_URL=${BACKEND_URL}
|
||||||
|
|
||||||
# Build Next.js app
|
# Build Next.js app
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue