2020-01-25 16:04:45 +00:00
|
|
|
FROM frolvlad/alpine-glibc as builder
|
|
|
|
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
|
2016-09-08 07:19:06 +00:00
|
|
|
|
2020-01-25 16:04:45 +00:00
|
|
|
FROM alpine AS final
|
|
|
|
LABEL author="Chris Lu"
|
|
|
|
COPY --from=builder /root/go/bin/weed /usr/bin/
|
|
|
|
RUN mkdir -p /etc/seaweedfs
|
|
|
|
COPY --from=builder /go/src/github.com/chrislusf/seaweedfs/docker/filer.toml /etc/seaweedfs/filer.toml
|
|
|
|
COPY --from=builder /go/src/github.com/chrislusf/seaweedfs/docker/entrypoint.sh /entrypoint.sh
|
2016-09-08 07:19:06 +00:00
|
|
|
|
2018-10-11 08:16:33 +00:00
|
|
|
# volume server gprc port
|
|
|
|
EXPOSE 18080
|
|
|
|
# volume server http port
|
2016-09-08 07:19:06 +00:00
|
|
|
EXPOSE 8080
|
2018-10-11 08:16:33 +00:00
|
|
|
# filer server gprc port
|
|
|
|
EXPOSE 18888
|
|
|
|
# filer server http port
|
2018-09-11 19:36:59 +00:00
|
|
|
EXPOSE 8888
|
2019-01-18 22:32:02 +00:00
|
|
|
# master server shared gprc port
|
|
|
|
EXPOSE 19333
|
|
|
|
# master server shared http port
|
2016-09-08 07:19:06 +00:00
|
|
|
EXPOSE 9333
|
2018-12-16 23:40:52 +00:00
|
|
|
# s3 server http port
|
|
|
|
EXPOSE 8333
|
2016-09-08 07:19:06 +00:00
|
|
|
|
2019-06-30 07:44:57 +00:00
|
|
|
RUN mkdir -p /data/filerldb2
|
2019-03-15 07:32:42 +00:00
|
|
|
|
2016-09-08 07:19:06 +00:00
|
|
|
VOLUME /data
|
|
|
|
|
2016-10-12 10:10:38 +00:00
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
|
2016-09-08 07:19:06 +00:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|