Added Dockerfile
This commit is contained in:
parent
cbb4a384ed
commit
76dfbbc511
11
Dockerfile
Normal file
11
Dockerfile
Normal 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"]
|
8
makefile
8
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:
|
||||
|
Loading…
Reference in New Issue
Block a user