coder / envbuilder

Build development environments from a Dockerfile on Docker, Kubernetes, and OpenShift. Enable developers to modify their development environment quickly.
Apache License 2.0
130 stars 25 forks source link

bug: devcontainer.Compile references global variable #314

Closed johnstcn closed 4 weeks ago

johnstcn commented 1 month ago

If you try to compile a Dockerfile from a devcontainer.json as non-root, you will get this error:

Error: compile devcontainer.json: open dockerfile: mkdir /.envbuilder: permission denied

(Alternatively, you may also get a "read-only filesystem" error.)

We should instead write the Dockerfile into the build context and not just use MagicDir.