July 2018
Intermediate to advanced
420 pages
8h 46m
English
Create a new file called Dockerfile inside of the ./Client folder, and add the following code:
FROM nginx:alpine COPY nginx.conf /etc/nginx/nginx.conf WORKDIR /usr/share/nginx/html COPY dist/ .
The preceding code is very simple; we are using an image from nginx:alpine, a Linux distribution.
Also, we are using a configuration file for the nginx server. Remember, the Angular application must be hosted by a web server.
Read now
Unlock full access