June 2018
Intermediate to advanced
348 pages
8h 19m
English
Before we can run our application, we will need to create a Docker image using our Dockerfile. Open a new Terminal and navigate to the project root folder. Once you are there, run the following command to build our Docker image:
$ cd /some/path/deployme$ docker build -t mydeploymeapp .Sending build context to Docker daemon 130.9MBStep 1/4 : FROM nginx:alpineDigest: sha256:17c4704e19a11cd47545fa3c17e6903fc88672021f7f907f212d6663baf6ab57Status: Downloaded newer image for nginx:alpine ---> 91ce6206f9d8Step 2/4 : COPY default.conf /etc/nginx/conf.d/default.conf ---> 0e744f0e2556Step 3/4 : COPY index.html /usr/share/nginx/html/index.html ---> 092ad92d0d5cStep 4/4 : COPY scripts /usr/share/nginx/html/scripts ---> ...
Read now
Unlock full access