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 ./
|
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
|
||||||
|
|
Loading…
Reference in a new issue