Skip to content

Commit

Permalink
update Makefile/Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Nov 3, 2017
1 parent e84600b commit 90026aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Expand Up @@ -2,9 +2,10 @@ FROM golang:latest

RUN groupadd -r toor && useradd --create-home --no-log-init -r -g toor toor
RUN go get -u github.com/golang/dep/cmd/dep
WORKDIR /go/src/github.com/immortal
WORKDIR /go/src/github.com/immortal/immortal
COPY . .
RUN dep ensure --vendor-only
RUN chown -R toor:toor /go
USER toor

ENTRYPOINT ["go", "test", "-race", "-v"]
5 changes: 4 additions & 1 deletion Makefile
@@ -1,4 +1,4 @@
.PHONY: all get test clean build cover compile goxc bintray install uninstall docker
.PHONY: all get test clean build cover compile goxc bintray install uninstall docker linux

GO ?= go
GO_XC = ${GOPATH}/bin/goxc -os="freebsd netbsd openbsd darwin linux"
Expand Down Expand Up @@ -77,3 +77,6 @@ uninstall: clean

docker:
docker run -it --privileged immortal .

linux:
docker run --entrypoint "/bin/bash" -it --privileged immortal

0 comments on commit 90026aa

Please sign in to comment.