WORKDIR — Set Working Directory
DK · Dockerfilesyntax
WORKDIR /path/to/direxample
WORKDIR /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.