Skip to main content

prune

v0.15

The moon docker prune command will reduce the overall filesize of the Docker environment by:

  • Installing production only dependencies for projects that were scaffolded.
  • Removing extraneous dependencies (node_modules, etc) for unfocused projects.
$ moon docker prune

View the official Docker usage guide for a more in-depth example of how to utilize this command.

caution

This command must be ran after moon docker scaffold and is typically ran within a Dockerfile!