# ARG LOCAL=false # RUN if [ "$LOCAL" = "true" ]; then \ # cp src/environments/environment.local.ts src/environments/environment.ts; \ # fi
This commit is contained in:
parent
066db023c8
commit
c2afcd45f1
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue