/go-docker

Playing with docker & go

Primary LanguageGoMIT LicenseMIT

go-docker

Playing with docker & go

How to do stuff with this

  1. docker build ./
  2. pwd
  3. docker images (find image id)
  4. docker run -it -p 8080:8080 -v [put your path here]/app:/go/src/github.com/user/myProject/app [image id]

For production:

  1. docker build ./ --build-arg app_env=production
  2. docker run -i -t -p 8080:8080 [image id]