COPY . .
Some checks failed
ci / build (push) Has been cancelled

# ARG LOCAL=false
# 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:50:12 +02:00
parent 066db023c8
commit c2afcd45f1

View file

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