Rapid Docker on AWS

Video Course

2.3 Building the Docker images for your web application

Reminder Temporary working environment
A short reminder of how to start your temporary working environment:
On Mac and Linux, open a terminal:
cd docker-on-aws-code && bash start.sh
On Windows, open PowerShell:
cd docker-on-aws-code; powershell -ExecutionPolicy ByPass -File start.ps1

Build NGINX image

cd /src/php-basic/
docker build -t php-basic-nginx:latest -f docker/nginx/Dockerfile .
Warning: Are you using a MacBook with Apple Silicon (ARM processor architecture)? Check out the ebook for instructions on how to build multi-architecture images with docker buildx.

Build PHP-FPM image

docker build -t php-basic-php-fpm:latest -f docker/php-fpm/Dockerfile .