cd app
go run main.go
cd app
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ../build/app
docker build -t bramalho/azure-go-web-app .
docker run -p 8080:80 --env PORT=80 bramalho/azure-go-web-app
docker login
docker push bramalho/azure-go-web-app
The image will be published in your docker hub.
cd terraform
terraform init
terraform plan
terraform apply
The application will be running here: azure-go-web-app.azurewebsites.net
The see the logs and all information here: azure-go-web-app.scm.azurewebsites.net