What is significance of "/usr/src/app" for WORKDIR

I’ve noticed that most Dockerfiles use /usr/src/app as the WORKDIR for the container.

From using Raspberry Pi’s, I’m using to putting everything for my app in /home/pi.

I’m curious why Docker containers want the app in /user/src. Does anyone know the origin of this convention?

Hey @csneath, you can specify as WORKDIR any path of preference. Some insights on the /usr/src/app workdir convention being used can be obtained by Linux/UNIX Conventional directory layout. Cheers!

1 Like