Skip to Content
Hands-On Azure for Developers
book

Hands-On Azure for Developers

by Kamil Mrzygłód
November 2018
Intermediate to advanced
606 pages
15h 7m
English
Packt Publishing
Content preview from Hands-On Azure for Developers

Creating and deploying an application and container

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.

As always, you can find source files in the appropriate source file folder for this chapter.

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:

  1. Installs the specific Node.js ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781789340624Supplemental Content