WORKDIR - Set Working Directory
DK · DockerfileWORKDIR /path/to/dirWORKDIR /app
COPY . .
RUN npm ciNote All subsequent RUN, CMD, COPY, and ENTRYPOINT instructions use this directory. WORKDIR creates the directory if it does not exist. Avoid using RUN cd /app - it only affects that single RUN layer.