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:
|
bench:
|
||||||
$(GOTEST) -bench .
|
$(GOTEST) -bench .
|
||||||
pack:
|
pack:
|
||||||
go get -u github.com/aerogo/pack
|
|
||||||
go install github.com/aerogo/pack
|
go install github.com/aerogo/pack
|
||||||
run:
|
run:
|
||||||
go get -u github.com/aerogo/run
|
|
||||||
go install github.com/aerogo/run
|
go install github.com/aerogo/run
|
||||||
goimports:
|
goimports:
|
||||||
go get -u golang.org/x/tools/cmd/goimports
|
|
||||||
go install golang.org/x/tools/cmd/goimports
|
go install golang.org/x/tools/cmd/goimports
|
||||||
tools:
|
tools:
|
||||||
ifeq ($(OSNAME),OSX)
|
ifeq ($(OSNAME),OSX)
|
||||||
@ -74,11 +71,6 @@ versions:
|
|||||||
assets:
|
assets:
|
||||||
$(TSCMD)
|
$(TSCMD)
|
||||||
@pack
|
@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:
|
clean:
|
||||||
find . -type f | xargs file | grep "ELF.*executable" | awk -F: '{print $1}' | xargs rm
|
find . -type f | xargs file | grep "ELF.*executable" | awk -F: '{print $1}' | xargs rm
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
Reference in New Issue
Block a user