WORKDIR and COPY don't work

I’m trying to move to dind. I have this in my Dockerfile:

WORKDIR /usr/src/app
COPY . /usr/src/app

Unfortunatlely I end up in / and even a mkdir -p and cd don’t move me from /. I’ve never encountered this before. Halp?

Never mind. Moved WORKDIR/ADD to the top of the Dockerfile. Fixed.

1 Like