Dockerfile Commands

  • FROM: The "base image" to build off of
  • WORKDIR: The directory in the base image to work in and start from
  • COPY: Copy files from the outside world to the image
  • RUN: Run a command inside the image
  • CMD: The default command that runs when the container starts

15 / 24