November 2018
Intermediate to advanced
606 pages
15h 7m
English
We will start our journey with ACI by creating an application that we will host in a container. In the previous section, we used a simple Python script—this time we will try to use Node.js.
The very first thing we need once more is Dockerfile. As you remember, it contains instructions on how an application should be run. The following is an example for this exercise:
FROM node:8.9.3-alpineRUN mkdir -p /bin/COPY ./app/ /bin/WORKDIR /binRUN npm installCMD node index.js
If you read it carefully, you will find it pretty easy—what it does (step-by-step) is as follows: