1

I want to use RUN cd /app instead of WORKDIR /app in my dockerfile. Is there any way to do this?

1 Answer 1

1

Yes, you can mkdir /app and then cd /app. WORKDIR is used to specify the directory whenever you exec bash to connect to container or the working directory when container start.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.