feature flags
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
|
||||
FROM node:20-alpine
|
||||
|
||||
# Accept build arguments
|
||||
ARG NODE_ENV=production
|
||||
ARG NEXT_PUBLIC_API_BASE_URL
|
||||
|
||||
# Install build dependencies required for SWC and sharp
|
||||
RUN apk add --no-cache \
|
||||
python3 \
|
||||
@@ -36,6 +40,11 @@ RUN npm install --include-workspace-root --no-audit --fund=false
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Set environment variables for build
|
||||
ENV NODE_ENV=${NODE_ENV}
|
||||
ENV NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL}
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
# Build the website
|
||||
WORKDIR /app/apps/website
|
||||
RUN npm run build
|
||||
|
||||
Reference in New Issue
Block a user