From the course: Deploying Your AWS Application to the Cloud with Docker

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Reviewing your project's Dockerfile

Reviewing your project's Dockerfile - Amazon Web Services (AWS) Tutorial

From the course: Deploying Your AWS Application to the Cloud with Docker

Start my 1-month free trial

Reviewing your project's Dockerfile

- [Instructor] The build spec file or build specification file, is the file that brings everything together. Running docker to generate our image, logging into the image registry we created, and safely storing our generated and labeled docker image, when the docker build completes. Let's go over these commands. This file is divided into sections. The install, pre-build, build, and post-build. The install, pre-build, build, and post-build. For install, we only need to install docker. But in here you could also install any tools or compilers that your build process may need to execute. In the pre-build section, is where you would configure those tools and your environment. In this case, we use the AWS tool, which we're going to need for the get-login command. Now we set several environment variables that are needed for the process. During the actual build, we executed docker build command, specifying the URL for our…

Contents