docker: tweaking docker file

This commit is contained in:
Chris Lu
2020-01-24 17:56:46 -08:00
parent 3cdb27fafc
commit 8e071c2fa6
2 changed files with 9 additions and 9 deletions

View File

@@ -1,8 +1,9 @@
FROM golang:latest
RUN go get github.com/chrislusf/seaweedfs/weed
RUN rm -rf /go/src/github.com/coreos/etcd/vendor/golang.org/x/net/trace
RUN rm -rf /go/src/go.etcd.io/etcd/vendor/golang.org/x/net/trace
RUN go get github.com/chrislusf/seaweedfs/weed
FROM frolvlad/alpine-glibc
RUN apk add git go g++
RUN mkdir -p /go/src/github.com/chrislusf/
RUN git clone https://github.com/chrislusf/seaweedfs /go/src/github.com/chrislusf/seaweedfs
RUN cd /go/src/github.com/chrislusf/seaweedfs/weed && go install
RUN cp /root/go/bin/weed /usr/bin/
# volume server gprc port
EXPOSE 18080
@@ -27,6 +28,5 @@ RUN mkdir -p /etc/seaweedfs
RUN cp /go/src/github.com/chrislusf/seaweedfs/docker/filer.toml /etc/seaweedfs/filer.toml
RUN cp /go/src/github.com/chrislusf/seaweedfs/docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN cp /go/bin/weed /usr/bin/
ENTRYPOINT ["/entrypoint.sh"]