RUN if [ "$LOCAL" = "true" ]; then \ cp src/environments/environment.local.ts src/environments/environment.ts; \ fi
This commit is contained in:
parent
3ce46cf784
commit
3e42c4e2ba
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