Skip to content

mw dev custom image dockerfile set

Releasev0.35.0 · cfeceb67

mw dev custom image dockerfile set [path] [flags]

Activate a custom Dockerfile for this service. Without a path, create or reuse Dockerfile. in the environment directory. With a path, use that file; relative paths are resolved from the current directory.

The Dockerfile’s directory is the build context. COPY sources must be inside it; use .dockerignore to exclude credentials and unrelated files.

Setting a file does not rebuild running containers. Run the service’s rebuild command to build and apply it.

-c, --context <string>
Development context to use (overrides CONTEXT) Default: default.
--help
Help for this command
-n, --name <string>
Name of the custom compose file (without extension), e.g. custom, custom-two, or custom.local Default: custom.
--no-interaction
Do not ask any interactive questions
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.