The error in #9 occurs under Ubuntu 20, and likely similar platforms enforcing non-root write privileges for the active user, due to hardcoded uid 1000 in the container images pulled during build. This explains build errors like these:
hellodjango-js-1 | mkdir: cannot create directory '../public/js': Permission denied
hellodjango-js-1 |
hellodjango-js-1 | Task completed in 0m0.001s
hellodjango-css-1 | mkdir: cannot create directory '../public/css': Permission denied
hellodjango-css-1 |
hellodjango-css-1 | Task completed in 0m0.001s
Resolution is to chown ./public* prior to first build with docker-compose. Likely have to do with sudo if the active user doesn't have root privileges.
$ sudo chown 1000 {public,public_collected}
The error in #9 occurs under Ubuntu 20, and likely similar platforms enforcing non-root write privileges for the active user, due to hardcoded uid 1000 in the container images pulled during build. This explains build errors like these:
Resolution is to chown ./public* prior to first build with docker-compose. Likely have to do with sudo if the active user doesn't have root privileges.