add env var

This commit is contained in:
2026-03-31 20:37:12 +02:00
parent 551b5a2658
commit 0b379d1331
15 changed files with 125 additions and 2 deletions

View File

@@ -4,6 +4,11 @@ FROM node:18-alpine as builder
# Set the working directory in the container
WORKDIR /usr/src/app
# Define the build-time argument
ARG REACT_APP_BACKEND_URL
# Set the environment variable for the build process
ENV REACT_APP_BACKEND_URL=$REACT_APP_BACKEND_URL
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./