Dockerfile

Dockerfile

Terminology context: A build’s context is the set of files located in the specified PATH or URL1. Dockerfile sample FROM ubuntu:20.04 ENV TZ=America/Los_Angeles RUN mkdir -p /home/my_user COPY ./files/in_home /home/my_user/in_home ARG DEBIAN_FRONTEND=noninteractive RUN apt update && apt upgrade -y RUN apt install -y nginx php COPY ./files/nginx/my.conf /etc/nginx/sites-available/my.conf RUN ln -s /etc/nginx/sites-available/my.conf /etc/nginx/sites-enabled/my.conf CMD ["nginx", "-g", "daemon off;"] Here is the context. . ├── Dockerfile └── files ├── in_home(dir) └── nginx └── my.