Build [v1.8.1] (Fix Docker Context)
This commit is contained in:
@@ -4,15 +4,16 @@ FROM node:20-alpine AS base
|
||||
FROM base AS deps
|
||||
RUN apk add --no-cache libc6-compat
|
||||
WORKDIR /app
|
||||
# We run this from the frontend folder context
|
||||
COPY package.json package-lock.json* ./
|
||||
# Context is root to allow access to VERSION.json
|
||||
COPY frontend/package.json frontend/package-lock.json* ./
|
||||
RUN npm ci
|
||||
|
||||
# Step 2: Build the source code
|
||||
FROM base AS builder
|
||||
WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
COPY frontend .
|
||||
COPY VERSION.json .
|
||||
# Disable telemetry during build
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
RUN npm run build
|
||||
|
||||
Reference in New Issue
Block a user