diff --git a/Classroom_Project_Instructions/Part_II_Microservices_Application.md b/Classroom_Project_Instructions/Part_II_Microservices_Application.md index 820aabe42f..c427b2dc10 100644 --- a/Classroom_Project_Instructions/Part_II_Microservices_Application.md +++ b/Classroom_Project_Instructions/Part_II_Microservices_Application.md @@ -75,20 +75,21 @@ In the frontend service, you just need to add a Dockerfile to the */project/udag ```bash ## Build -FROM beevelop/ionic:latest AS ionic +FROM node:14.15.5-alpine3.13 as build # Create app directory WORKDIR /usr/src/app # Install app dependencies # A wildcard is used to ensure both package.json AND package-lock.json are copied COPY package*.json ./ RUN npm ci +RUN npm install -g @ionic/cli # Bundle app source COPY . . RUN ionic build ## Run FROM nginx:alpine #COPY www /usr/share/nginx/html -COPY --from=ionic /usr/src/app/www /usr/share/nginx/html +COPY --from=build /usr/src/app/www /usr/share/nginx/html ``` > **Tip**: Add `.dockerignore` to each of the services above, and mention `node_modules` in that file. It will ensure that the `node_modules` will not be included in the Dockerfile `COPY` commands.