2020-06-28 21:06:29 -07:00
|
|
|
FROM alpine:3.12
|
2017-06-14 02:08:35 -07:00
|
|
|
|
2019-04-09 11:39:42 -07:00
|
|
|
LABEL maintainer="MinIO Inc <dev@min.io>"
|
2018-04-24 18:57:48 +02:00
|
|
|
|
2017-12-16 02:03:42 +05:30
|
|
|
ENV MINIO_UPDATE off
|
2018-01-09 06:16:25 +01:00
|
|
|
ENV MINIO_ACCESS_KEY_FILE=access_key \
|
2019-07-17 21:55:26 +02:00
|
|
|
MINIO_SECRET_KEY_FILE=secret_key \
|
2020-01-12 23:01:18 -08:00
|
|
|
MINIO_KMS_MASTER_KEY_FILE=kms_master_key \
|
|
|
|
MINIO_SSE_MASTER_KEY_FILE=sse_master_key
|
2017-12-16 02:03:42 +05:30
|
|
|
|
2017-06-14 02:08:35 -07:00
|
|
|
RUN \
|
2020-07-22 17:09:31 -07:00
|
|
|
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
|
|
|
apk update && apk add --no-cache ca-certificates 'curl>7.61.0' 'su-exec>=0.2' minisign && \
|
2017-06-14 02:08:35 -07:00
|
|
|
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \
|
2020-07-10 18:30:22 -07:00
|
|
|
curl -s -q https://dl.min.io/server/minio/release/linux-amd64/minio -o /usr/bin/minio && \
|
2020-07-22 17:09:31 -07:00
|
|
|
curl -s -q https://dl.min.io/server/minio/release/linux-amd64/minio.sha256sum -o /usr/bin/minio.sha256sum && \
|
|
|
|
curl -s -q https://dl.min.io/server/minio/release/linux-amd64/minio.minisig -o /usr/bin/minio.minisig && \
|
|
|
|
curl -s -q https://raw.githubusercontent.com/minio/minio/master/dockerscripts/verify-minio.sh -o /usr/bin/verify-minio.sh && \
|
|
|
|
curl -s -q https://raw.githubusercontent.com/minio/minio/master/dockerscripts/docker-entrypoint.sh -o /usr/bin/docker-entrypoint.sh && \
|
2020-07-10 18:30:22 -07:00
|
|
|
chmod +x /usr/bin/minio && \
|
2020-06-22 08:26:40 -07:00
|
|
|
chmod +x /usr/bin/docker-entrypoint.sh && \
|
2020-07-22 17:09:31 -07:00
|
|
|
chmod +x /usr/bin/verify-minio.sh && \
|
2020-08-02 09:01:57 -07:00
|
|
|
curl -s -q -O https://raw.githubusercontent.com/minio/minio/master/CREDITS && \
|
2020-07-22 17:09:31 -07:00
|
|
|
/usr/bin/verify-minio.sh
|
2017-06-14 02:08:35 -07:00
|
|
|
|
|
|
|
EXPOSE 9000
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]
|
|
|
|
|
2018-03-14 06:59:27 +05:30
|
|
|
VOLUME ["/data"]
|
2017-06-14 02:08:35 -07:00
|
|
|
|
|
|
|
CMD ["minio"]
|