Treat this SKILL.md as the entry point; for details, read the relevant file under references .
docker-expert Do not duplicate the general Docker optimization, security hardening, and Compose design described in .
This skill supplements only the local conventions not specified there.
When to Use
- Create, modify, or review a Dockerfile
- Create, modify, or review a Docker Compose development environment
- Create a frontend development environment with devcontainer or Docker Compose
- Run the Vite dev server inside a container
- Fix the issue where source edits are not reflected in the container
How to Read
- If you are working with a Dockerfile, read dockerfile-layer-headings.md Read
- If you are working with source mounts in a development environment, read development-source-mount.md Read
- If you are working with the Vite dev server or hot reload, read vite-hot-reload.md Read
- In a frontend Docker development environment, check both the source mount and Vite hot reload
Reference Files
- dockerfile-layer-headings.md: Layer heading conventions for multi-stage Dockerfiles
- development-source-mount.md: Source mount conventions for development environments
- vite-hot-reload.md: Vite dev server and hot reload conventions
Common Checks
- Does the Dockerfile assume a multi-stage build?
- Does the development service use the dev target?
- Is the source directory bind-mounted to the container's working directory?
- Is the Vite dev server used for frontend development?
- Is the setup configured so that rebuild is unnecessary for source changes alone?