DEV Community

Discussion on: Dockerize your Go app

Collapse
 
karanpratapsingh profile image
Karan Pratap Singh

Hi Josh, yes I use docker to develop in Go. What issue are you facing? are you using docker-compose and develoment stage? for me it's pretty much instant restart. You can use normal go run if it works best for you

Collapse
 
cctechwiz profile image
Josh Maxwell

I'm not yet using the multistage build I'll give that a whirl on Monday. My main hang up is that it takes like 10-15 seconds to run my 'make run' ( which uses docker) and that little delay really builds up over the day. I'll give the multistage build a try thought. And I'm.not using docker-compise since I only have one container so far.

Thread Thread
 
karanpratapsingh profile image
Karan Pratap Singh

Hey, “make dev” is recommended for development as it uses docker compose and mounts a volume which is faster than rebuilding with “make run”