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 - Amazon Web Services (AWS) Tutorial
From the course: Deploying Your AWS Application to the Cloud with Docker
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Building your ECR Docker image repository59s
-
(Locked)
Reviewing your project's Dockerfile2m 29s
-
(Locked)
CodeBuild buildspec file1m 43s
-
(Locked)
Creating a CI/CD pipeline for your CodeBuild project5m 29s
-
(Locked)
Setting CodeBuild permissions2m 40s
-
(Locked)
Challenge: CodeBuild external resources37s
-
(Locked)
Solution: Pulling external resources into CodeBuild1m 59s
-
(Locked)
-
-
-