An example project to create docker image for beego API application
- Make sure you activate go mod by this command :
export GOFLAGS=-mod=vendor
export GO111MODULE=on
- and then , you can download and create folder /vendor for dependency code by using this command :
go mod download
go mod vendor
go mod verify
To running locally , you can use this command :
bee run
- you can use docker-compose.yml as docker config file to generate docker image.
- to running the program , you can use this command :
docker-compose up --build