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.

CodeBuild buildspec file

CodeBuild buildspec file - Amazon Web Services (AWS) Tutorial

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

Start my 1-month free trial

CodeBuild buildspec file

- [Instructor] Now that we have a place to store our generated Docker images, let's look at the commands required to build those images. This file here is a Docker file, which is a series of commands that tells Docker which base image to start from, how to configure it, and how to run it. The first command here on line one says FROM node:10, specified Node.js, version 10, which is a requirement for our application. The following lines here are like four, five, and six, specifies a series of environment configurations and the port that our application is going to expose, in this case, port 8080. Following that, on line 11, we copy our file containing our required dependencies. On line 13, we run the command npm install to download and install those dependencies, which, following that, the command on line 16 integrates our source code with those dependencies, which will in turn will generate our binary artifact, which is…

Contents