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
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install -g @angular/cli
|
||||
# copy both 'package.json' and 'package-lock.json' (if available)
|
||||
COPY app/package*.json ./
|
||||
|
||||
# install project dependencies
|
||||
RUN npm install -g @angular/cli
|
||||
RUN npm install
|
||||
|
||||
# copy project files and folders to the current working directory (i.e. 'app' folder)
|
||||
|
||||
Reference in New Issue
Block a user