Dockerfile instructions: FROM, WORKDIR, COPY, RUN, EXPOSE, USER
Select an icon to see what it is.
Step 2 of 6
WORKDIR sets the working directory
WORKDIR /app creates the directory if it does not exist and makes it the current directory for the instructions after it. It also sets Config.WorkingDir, so the container's process starts there. Use it instead of RUN cd, which does not carry over to the next instruction.
Image config
{"Config": {"WorkingDir": "/app"}}