19.06.2021 Views

148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3 ■ Kubernetes on Google Cloud Platform

Figure 3-61. The server.js Node Script

Next, create a Docker file, also in the hellonode folder, to describe the Docker image to build including

the port the application listens on.

FROM node:4.4

EXPOSE 8080

COPY server.js .

CMD node server.js

The Docker file is shown in Figure 3-62.

Figure 3-62. The Dockerfile

82

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!