|
@ -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 |
|
|
# volume server gprc port |
|
|
EXPOSE 18080 |
|
|
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/filer.toml /etc/seaweedfs/filer.toml |
|
|
RUN cp /go/src/github.com/chrislusf/seaweedfs/docker/entrypoint.sh /entrypoint.sh |
|
|
RUN cp /go/src/github.com/chrislusf/seaweedfs/docker/entrypoint.sh /entrypoint.sh |
|
|
RUN chmod +x /entrypoint.sh |
|
|
RUN chmod +x /entrypoint.sh |
|
|
RUN cp /go/bin/weed /usr/bin/ |
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"] |
|
|
ENTRYPOINT ["/entrypoint.sh"] |