Moving an gular cli installation up to not redo it every time we add a library

This commit is contained in:
2023-03-05 14:29:59 +01:00
parent 4d31497b8b
commit da634c59ee

View File

@@ -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)