github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/template/api/README.md (about)

     1  # Template Api
     2  
     3  This is the Template service with fqdn go.micro.api.template.
     4  
     5  ## Getting Started
     6  
     7  ### Run Service
     8  
     9  ```
    10  $ go run main.go
    11  ```
    12  
    13  ### Building a container
    14  
    15  If you would like to build the docker container do the following
    16  ```
    17  CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w' -o template-api ./main.go
    18  docker build -t template-api .
    19  
    20  ```