diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..3cfdf072 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM golang:1.12.2-alpine +RUN mkdir /notify.moe +ADD . /notify.moe +WORKDIR /notify.moe +ENV ARN_ROOT /notify.moe +RUN apk add --no-cache git nodejs npm make gcc libc-dev +RUN npm i -g typescript +RUN go mod download +RUN make all +RUN apk del git nodejs npm make gcc libc-dev +CMD ["/notify.moe/notify.moe"] \ No newline at end of file diff --git a/makefile b/makefile index 2f8045fb..a9e93b8a 100644 --- a/makefile +++ b/makefile @@ -47,13 +47,10 @@ test: bench: $(GOTEST) -bench . pack: - go get -u github.com/aerogo/pack go install github.com/aerogo/pack run: - go get -u github.com/aerogo/run go install github.com/aerogo/run goimports: - go get -u golang.org/x/tools/cmd/goimports go install golang.org/x/tools/cmd/goimports tools: ifeq ($(OSNAME),OSX) @@ -74,11 +71,6 @@ versions: assets: $(TSCMD) @pack -deps: - # Ignore errors using the "-" because components directory can not be fetched. - @-go get -t -v ./... -depslist: - $(GOCMD) list -f {{.Deps}} | sed -e 's/\[//g' -e 's/\]//g' | tr " " "\n" clean: find . -type f | xargs file | grep "ELF.*executable" | awk -F: '{print $1}' | xargs rm ports: