Dockerfile
template for Golang
applications.
docker build -t go-dockerfile . && docker run -it -p 80:80 go-dockerfile
By default, the selected framework is echo
. To select other frameworks, just pass
the framework name in docker build argument
.
docker build --build-arg FRAMEWORK=fiber -t go-dockerfile . && docker run -it -p 80:80 go-dockerfile
echo
fiber