init docker
nexler init docker
local only
nexler init docker [-dir <app-dir>]
Adds a multi-stage Dockerfile (build + serve) and a docker-compose.yml to an existing app. The build stage's golang:<version>-alpine always matches the app's real go.mod "go X.Y" directive, and the exposed/mapped port matches the app's real {PREFIX}_PORT from .env (defaulting to 8080). .env is never baked into the image — the compose file passes it through via env_file: at container runtime instead. Refuses if either file already exists.
nexler init docker -dir ./myapp