FROM minio/minio:edge

LABEL maintainer="MinIO Inc <dev@min.io>"

COPY minio /usr/bin/
COPY dockerscripts/docker-entrypoint.sh /usr/bin/

RUN chmod +x /usr/bin/minio && \
    chmod +x /usr/bin/docker-entrypoint.sh

EXPOSE 9000

ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]

VOLUME ["/data"]

CMD ["minio"]