Docker Community Forums

Share and learn in the Docker community.

MKDIR fails on dockerfile

(Jmullady) #1

I’m just starting out with docker and building containers and pushing to AWS.

FROM node:9.10-slim

RUN mkdir p ~/test
ADD . ~/test

WORKDIR ~/test

CMD [“node”, “server”]

The mkdir never works, I must be doing something pretty stupid. Sorry for the newbie question


(King Chung Huang) #2

Missing a hyphen on the p option?

RUN mkdir -p ~/test