build: update docker file to work with npm
This commit is contained in:
parent
b580fc7442
commit
2802e6978c
|
@ -14,14 +14,14 @@ WORKDIR /app
|
|||
# add `/app/node_modules/.bin` to $PATH
|
||||
ENV PATH /app/node_modules/.bin:$PATH
|
||||
|
||||
RUN yarn
|
||||
RUN yarn global add @angular/cli
|
||||
RUN npm i
|
||||
RUN npm i -g @angular/cli
|
||||
|
||||
# run linter
|
||||
RUN yarn lint
|
||||
RUN npm run lint
|
||||
|
||||
# generate build
|
||||
RUN yarn buildFrontend:prodWeb
|
||||
RUN npm run buildFrontend:prodWeb
|
||||
|
||||
### serve ###
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user