test
All checks were successful
Build And Test / build-and-push (push) Successful in 1m53s

This commit is contained in:
2025-04-23 15:23:39 +09:00
parent a5d4024ede
commit 293bcdbea6
7 changed files with 53 additions and 21 deletions

View File

@ -1,10 +1,6 @@
# Build stage
FROM node:20.11 as builder
# Build arguments for React environment variables
ARG REACT_APP_API_AUTH
ARG REACT_APP_API_BLOG
# Set working directory
WORKDIR /usr/src/app
@ -17,10 +13,6 @@ RUN npm install
# Copy the rest of the application
COPY . ./
# Set env vars for React build (only works if passed as build-arg)
ENV REACT_APP_API_AUTH=$REACT_APP_API_AUTH
ENV REACT_APP_API_BLOG=$REACT_APP_API_BLOG
# Build the application
RUN npm run build