diff --git a/Dockerfile b/Dockerfile index 067559e..87ae856 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,4 @@ FROM docker.io/microlib/golang-base:1.7 # This will change depending on each microservice entry point # This will change to the binary start in production based images -CMD ["/bin/sh", "go run main.go"] +CMD ["/usr/local/go/bin/go", "run", "main.go"] diff --git a/README.md b/README.md index e195f19..eceb74f 100644 --- a/README.md +++ b/README.md @@ -123,3 +123,22 @@ none }] } ``` + +*** + +## Development + +To build an image locally execute the following script + +``` +docker build -t usermanager:dev . + +``` + + +To execute it run the following script + +``` +docker run -it --name usermanager -v //src/github.com/microlib/usermanager/:/go --privileged + +``` \ No newline at end of file