[32788f42] Keine Zusammenfassung angegeben.
Keine Zusammenfassung angegeben.
This commit is contained in:
@@ -3,6 +3,9 @@ FROM node:20-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Accept build arguments
|
||||
ARG VITE_API_BASE_URL
|
||||
|
||||
# Copy package.json and package-lock.json
|
||||
COPY package*.json ./
|
||||
|
||||
@@ -12,6 +15,9 @@ RUN npm install
|
||||
# Copy the rest of the application source code
|
||||
COPY . .
|
||||
|
||||
# Write the build arg to .env.production so Vite picks it up during build
|
||||
RUN echo "VITE_API_BASE_URL=${VITE_API_BASE_URL}" > .env.production
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user