Skip to main content

devbox generate dockerfile

Generate a Dockerfile that replicates devbox shell

Synopsis

Generate a Dockerfile that replicates devbox shell. Can be used to run devbox shell environment in an OCI container.

devbox generate dockerfile [flags]

Options

OptionDescription
-c, --config stringpath to directory containing a devbox.json config file
-f, --forceforce overwrite existing files
--root-useruse root as the user for container. Installs nix as single-user mode in Dockerfile
-h, --helphelp for dockerfile
-q, --quietQuiet mode: Suppresses logs.

SEE ALSO