Skip to content

๐Ÿ›  A basic image for developing golang including live-reload with realize

Notifications You must be signed in to change notification settings

mraerino/golang-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 

Repository files navigation

Dockerfile used for development with livereload

Usage

docker run

export GO_WORKDIR=/go/src/github.com/<your repo>
docker run -it --rm -v $PWD:$GO_WORKDIR -w $GO_WORKDIR mraerino/golang-dev

Docker Compose

export GO_WORKDIR=/go/src/github.com/<your repo>

version: "3.5"

services:
  app:
    image: mraerino/golang-dev
    working_dir: $GO_WORKDIR
    volumes:
      - $PWD:$GO_WORKDIR

Advanced

version: "3.5"

services:
  gocommerce:
    image: mraerino/golang-dev
    working_dir: $GO_WORKDIR
    volumes:
      - $PWD:$GO_WORKDIR
    command: realize start --no-config --run --legacy <args for your binary>
    environment:
      # env variables
    ports:
      # port mappings

License

MIT License.

About

๐Ÿ›  A basic image for developing golang including live-reload with realize

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published