Skip to content

Commit

Permalink
Remove alpine base image and use UBI as default
Browse files Browse the repository at this point in the history
  • Loading branch information
nitisht authored and harshavardhana committed Dec 8, 2020
1 parent d85a727 commit 6a29799
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 27 deletions.
21 changes: 16 additions & 5 deletions Dockerfile.release
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
FROM alpine:latest as alpine
RUN apk add -U --no-cache ca-certificates
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3

FROM scratch
MAINTAINER MinIO Development "dev@min.io"
LABEL name="MinIO" \
vendor="MinIO Inc <dev@min.io>" \
maintainer="MinIO Inc <dev@min.io>" \
version="v0.12.1" \
release="v0.12.1" \
summary="KES is a stateless and distributed key-management system for high-performance applications." \
description="KES as the bridge between modern applications - running as containers on Kubernetes - and centralized KMS solutions. Therefore, KES has been designed to be simple, scalable and secure by default. It has just a few knobs to tweak instead of a complex configuration and does not require a deep understanding of secure key-management or cryptography."

RUN \
microdnf update --nodocs && \
microdnf install ca-certificates --nodocs && \
microdnf clean all && \
mkdir /licenses && \
curl -s -q https://raw.githubusercontent.com/minio/kes/master/CREDITS -o /licenses/CREDITS && \
curl -s -q https://raw.githubusercontent.com/minio/kes/master/LICENSE -o /licenses/LICENSE

COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY kes /kes

EXPOSE 7373
Expand Down
22 changes: 0 additions & 22 deletions Dockerfile.release.ubi

This file was deleted.

0 comments on commit 6a29799

Please sign in to comment.