DEV Community

Discussion on: Air: Live reload on Golang applications

Collapse
 
parmcoder profile image
Possawat Sanorkam

Thank you for your post. Could you please give me the dockerfile recipe without using the image from cosmtrek/air?

Great!

Collapse
 
brenoalves profile image
Breno Alves
# binary will be $(go env GOPATH)/bin/air
curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin

# or install it into ./bin/
curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s

air -v
Enter fullscreen mode Exit fullscreen mode

you can find this script on air github README. Just use it to install within your docker container and I believe you're good to go :)