Dockerfile

Dockerfile

Terminology context: A build’s context is the set of files located in the specified PATH or URL1. Dockerfile sample FROMubuntu:20.04ENV TZ=America/Los_AngelesRUN mkdir -p /home/my_userCOPY ./files/in_home /home/my_user/in_homeARG DEBIAN_FRONTEND=noninteractive RUN apt update && apt upgrade -yRUN apt install -y nginx phpCOPY ./files/nginx/my.conf /etc/nginx/sites-available/my.confRUN ln -s /etc/nginx/sites-available/my.conf /etc/nginx/sites-enabled/my.confCMD ["nginx", "-g", "daemon off;"]Here is the context. . ├── Dockerfile └── files ├── in_home(dir) └── nginx └── my.conf Exec the commands below and run