Moving an gular cli installation up to not redo it every time we add a library
This commit is contained in:
@@ -6,11 +6,11 @@ RUN npm install -g http-server
|
|||||||
# make the 'app' folder the current working directory
|
# make the 'app' folder the current working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN npm install -g @angular/cli
|
||||||
# copy both 'package.json' and 'package-lock.json' (if available)
|
# copy both 'package.json' and 'package-lock.json' (if available)
|
||||||
COPY app/package*.json ./
|
COPY app/package*.json ./
|
||||||
|
|
||||||
# install project dependencies
|
# install project dependencies
|
||||||
RUN npm install -g @angular/cli
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# copy project files and folders to the current working directory (i.e. 'app' folder)
|
# copy project files and folders to the current working directory (i.e. 'app' folder)
|
||||||
|
|||||||
Reference in New Issue
Block a user