Ref: https://learn.cantrill.io/courses/docker-fundamentals/lectures/44660838 =OR= https://www.youtube.com/watch?v=cB4VKZI2sVw

DEMO: https://learn.cantrill.io/courses/docker-fundamentals/lectures/44660840 =OR= https://www.youtube.com/watch?v=snXchrxRoPcGitHub: https://github.com/acantril/docker-fundamentals/blob/main/build-a-simple-containerized-application/build-a-simple-containerized-application.md


Building images with Dockerfile

Dockerfile basic keywords


Dockerfile Example

FROM nginx:latest
LABEL [maintainer="[email protected]](mailto:maintainer=%[email protected])"
COPY 2048 /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
  1. Use latest version of the nginx image
  2. Set metadata maintainer