Add Docker Support (#157)

* dep init

* add Dockerfile

* update Dockerfile: add rice

* remove npm build & rice

* remove dep

* remove dep in Dockerfile
pull/160/head
田浩 2017-07-27 17:27:59 +08:00 committed by Henrique Dias
parent 155b5c3c02
commit bfc4362ddc
1 changed files with 10 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM golang:alpine
WORKDIR /go/src/github.com/hacdias/filemanager
COPY . /go/src/github.com/hacdias/filemanager
RUN apk add --no-cache git && go get ./... && cd /go/src/github.com/hacdias/filemanager/cmd/filemanager && go build
FROM alpine:latest
COPY --from=0 /go/src/github.com/hacdias/filemanager/cmd/filemanager/filemanager /usr/local/bin/filemanager
ENTRYPOINT ["filemanager"]
CMD ["-h"]