Add Docker Support (#157)
* dep init * add Dockerfile * update Dockerfile: add rice * remove npm build & rice * remove dep * remove dep in Dockerfile
This commit is contained in:
parent
155b5c3c02
commit
bfc4362ddc
|
@ -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"]
|
Loading…
Reference in New Issue