One of the 50 questions in this topic
How much do you know about Docker?The WORKDIR statement sets the working directory for subsequent statements in the Dockerfile and for the container's main process when it runs. If the directory does not exist, it is created automatically. It is preferable to using RUN cd /path to change directories.