Added Dockerfile

This commit is contained in:
Eduard Urbach 2019-04-08 14:43:13 +09:00
parent cbb4a384ed
commit 76dfbbc511
2 changed files with 11 additions and 8 deletions

11
Dockerfile Normal file
View File

@ -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"]

View File

@ -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: