Moving an gular cli installation up to not redo it every time we add a library
This commit is contained in:
1 parent
4d31497b8b
commit
da634c59ee
1 file changed
+1
-1
+1
-1
@@ -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