goctl docker
Generate Dockerfile
Options
| Name | Description | 
|---|---|
| --base  <base> | The base image to build the docker image, default scratch | 
| --branch  <branch> | The branch of the remote repo, it does work with --remote | 
| --go  <go> | The directory that contains main function | 
| --home  <home> | The goctl home path of the template, --home and --remote cannot be set at the same time, if they are, --remote has higher priority | 
| --port  <port> | The port to expose, default none | 
| --remote  <remote> | The remote git repo of the template, --home and --remote cannot be set at the same time, if they are, --remote has higher priority The git repo directory must be consistent with the https://github.com/zeromicro/go-zero-template directory structure | 
| --tz  <tz> | The timezone of the container | 
| --version  <version> | The goctl builder golang image version |