Skip to content

Instantly share code, notes, and snippets.

@wilk
Created November 2, 2017 22:06
Show Gist options
  • Save wilk/f551e338136784723c1892180eebfe81 to your computer and use it in GitHub Desktop.
Save wilk/f551e338136784723c1892180eebfe81 to your computer and use it in GitHub Desktop.
Setup service
version: '2'
services:
setup-golang:
# start by installing all the dependencies
command: glide install
image: data.golang1.9:1
build:
# build the image from docker go dockerfile
dockerfile: docker/Dockerfile
context: ./go
volumes:
# mount the entire directory inside the container to mirror the same folder structure
- ./go:/go/src/app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment