ARG LOCAL=false
All checks were successful
ci / build (push) Successful in 1m27s

RUN if [ "$LOCAL" = "true" ]; then \
      cp src/environments/environment.local.ts src/environments/environment.ts; \
    fi
This commit is contained in:
miwr 2025-04-15 14:51:14 +02:00
parent 3ce46cf784
commit 3e42c4e2ba

View file

@ -3,10 +3,10 @@ WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install --legacy-peer-deps # or yarn install RUN npm install --legacy-peer-deps # or yarn install
COPY . . COPY . .
# ARG LOCAL=false ARG LOCAL=false
# RUN if [ "$LOCAL" = "true" ]; then \ RUN if [ "$LOCAL" = "true" ]; then \
# cp src/environments/environment.local.ts src/environments/environment.ts; \ cp src/environments/environment.local.ts src/environments/environment.ts; \
# fi fi
RUN npm run build --prod RUN npm run build --prod
FROM nginx:alpine FROM nginx:alpine