mirror of
				https://github.com/minio/minio.git
				synced 2025-11-04 02:01:05 +01:00 
			
		
		
		
	Add signature and SHA to the Docker images (#20270)
add signature and SHA to the Docker images
This commit is contained in:
		
							parent
							
								
									cc0c41d216
								
							
						
					
					
						commit
						b07c58aa05
					
				@ -11,14 +11,16 @@ RUN apk add -U --no-cache ca-certificates && \
 | 
			
		||||
    apk add -U --no-cache curl && \
 | 
			
		||||
    go install aead.dev/minisign/cmd/minisign@v0.2.1
 | 
			
		||||
 | 
			
		||||
# Download minio binary and signature file
 | 
			
		||||
# Download minio binary and signature files
 | 
			
		||||
RUN curl -s -q https://dl.min.io/server/minio/hotfixes/linux-${TARGETARCH}/archive/minio.${RELEASE} -o /go/bin/minio && \
 | 
			
		||||
    curl -s -q https://dl.min.io/server/minio/hotfixes/linux-${TARGETARCH}/archive/minio.${RELEASE}.minisig -o /go/bin/minio.minisig && \
 | 
			
		||||
    curl -s -q https://dl.min.io/server/minio/hotfixes/linux-${TARGETARCH}/archive/minio.${RELEASE}.sha256sum -o /go/bin/minio.sha256sum && \
 | 
			
		||||
    chmod +x /go/bin/minio
 | 
			
		||||
 | 
			
		||||
# Download mc binary and signature file
 | 
			
		||||
# Download mc binary and signature files
 | 
			
		||||
RUN curl -s -q https://dl.min.io/client/mc/release/linux-${TARGETARCH}/mc -o /go/bin/mc && \
 | 
			
		||||
    curl -s -q https://dl.min.io/client/mc/release/linux-${TARGETARCH}/mc.minisig -o /go/bin/mc.minisig && \
 | 
			
		||||
    curl -s -q https://dl.min.io/client/mc/release/linux-${TARGETARCH}/mc.sha256sum -o /go/bin/mc.sha256sum && \
 | 
			
		||||
    chmod +x /go/bin/mc
 | 
			
		||||
 | 
			
		||||
RUN if [ "$TARGETARCH" = "amd64" ]; then \
 | 
			
		||||
@ -53,7 +55,11 @@ ENV MINIO_ACCESS_KEY_FILE=access_key \
 | 
			
		||||
 | 
			
		||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
 | 
			
		||||
COPY --from=build /go/bin/minio /usr/bin/minio
 | 
			
		||||
COPY --from=build /go/bin/minio.minisig /usr/bin/minio.minisig
 | 
			
		||||
COPY --from=build /go/bin/minio.shasum256 /usr/bin/minio.shasum256
 | 
			
		||||
COPY --from=build /go/bin/mc /usr/bin/mc
 | 
			
		||||
COPY --from=build /go/bin/mc.minisig /usr/bin/mc.minisig
 | 
			
		||||
COPY --from=build /go/bin/mc.shasum256 /usr/bin/mc.shasum256
 | 
			
		||||
COPY --from=build /go/bin/cur* /usr/bin/
 | 
			
		||||
 | 
			
		||||
COPY CREDITS /licenses/CREDITS
 | 
			
		||||
 | 
			
		||||
@ -11,14 +11,16 @@ RUN apk add -U --no-cache ca-certificates && \
 | 
			
		||||
    apk add -U --no-cache curl && \
 | 
			
		||||
    go install aead.dev/minisign/cmd/minisign@v0.2.1
 | 
			
		||||
 | 
			
		||||
# Download minio binary and signature file
 | 
			
		||||
# Download minio binary and signature files
 | 
			
		||||
RUN curl -s -q https://dl.min.io/server/minio/release/linux-${TARGETARCH}/archive/minio.${RELEASE} -o /go/bin/minio && \
 | 
			
		||||
    curl -s -q https://dl.min.io/server/minio/release/linux-${TARGETARCH}/archive/minio.${RELEASE}.minisig -o /go/bin/minio.minisig && \
 | 
			
		||||
    curl -s -q https://dl.min.io/server/minio/release/linux-${TARGETARCH}/archive/minio.${RELEASE}.sha256sum -o /go/bin/minio.sha256sum && \
 | 
			
		||||
    chmod +x /go/bin/minio
 | 
			
		||||
 | 
			
		||||
# Download mc binary and signature file
 | 
			
		||||
# Download mc binary and signature files
 | 
			
		||||
RUN curl -s -q https://dl.min.io/client/mc/release/linux-${TARGETARCH}/mc -o /go/bin/mc && \
 | 
			
		||||
    curl -s -q https://dl.min.io/client/mc/release/linux-${TARGETARCH}/mc.minisig -o /go/bin/mc.minisig && \
 | 
			
		||||
    curl -s -q https://dl.min.io/client/mc/release/linux-${TARGETARCH}/mc.sha256sum -o /go/bin/mc.sha256sum && \
 | 
			
		||||
    chmod +x /go/bin/mc
 | 
			
		||||
 | 
			
		||||
RUN if [ "$TARGETARCH" = "amd64" ]; then \
 | 
			
		||||
@ -53,7 +55,11 @@ ENV MINIO_ACCESS_KEY_FILE=access_key \
 | 
			
		||||
 | 
			
		||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
 | 
			
		||||
COPY --from=build /go/bin/minio /usr/bin/minio
 | 
			
		||||
COPY --from=build /go/bin/minio.minisig /usr/bin/minio.minisig
 | 
			
		||||
COPY --from=build /go/bin/minio.shasum256 /usr/bin/minio.shasum256
 | 
			
		||||
COPY --from=build /go/bin/mc /usr/bin/mc
 | 
			
		||||
COPY --from=build /go/bin/mc.minisig /usr/bin/mc.minisig
 | 
			
		||||
COPY --from=build /go/bin/mc.shasum256 /usr/bin/mc.shasum256
 | 
			
		||||
COPY --from=build /go/bin/cur* /usr/bin/
 | 
			
		||||
 | 
			
		||||
COPY CREDITS /licenses/CREDITS
 | 
			
		||||
 | 
			
		||||
@ -11,9 +11,10 @@ RUN apk add -U --no-cache ca-certificates && \
 | 
			
		||||
    apk add -U --no-cache curl && \
 | 
			
		||||
    go install aead.dev/minisign/cmd/minisign@v0.2.1
 | 
			
		||||
 | 
			
		||||
# Download minio binary and signature file
 | 
			
		||||
# Download minio binary and signature files
 | 
			
		||||
RUN curl -s -q https://dl.min.io/server/minio/release/linux-${TARGETARCH}/archive/minio.${RELEASE}.fips -o /go/bin/minio && \
 | 
			
		||||
    curl -s -q https://dl.min.io/server/minio/release/linux-${TARGETARCH}/archive/minio.${RELEASE}.fips.minisig -o /go/bin/minio.minisig && \
 | 
			
		||||
    curl -s -q https://dl.min.io/server/minio/release/linux-${TARGETARCH}/archive/minio.${RELEASE}.fips.sha256sum -o /go/bin/minio.sha256sum && \
 | 
			
		||||
    chmod +x /go/bin/minio
 | 
			
		||||
 | 
			
		||||
RUN if [ "$TARGETARCH" = "amd64" ]; then \
 | 
			
		||||
@ -46,6 +47,8 @@ ENV MINIO_ACCESS_KEY_FILE=access_key \
 | 
			
		||||
 | 
			
		||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
 | 
			
		||||
COPY --from=build /go/bin/minio /usr/bin/minio
 | 
			
		||||
COPY --from=build /go/bin/minio.minisig /usr/bin/minio.minisig
 | 
			
		||||
COPY --from=build /go/bin/minio.shasum256 /usr/bin/minio.shasum256
 | 
			
		||||
COPY --from=build /go/bin/cur* /usr/bin/
 | 
			
		||||
 | 
			
		||||
COPY CREDITS /licenses/CREDITS
 | 
			
		||||
 | 
			
		||||
@ -11,14 +11,16 @@ RUN apk add -U --no-cache ca-certificates && \
 | 
			
		||||
    apk add -U --no-cache curl && \
 | 
			
		||||
    go install aead.dev/minisign/cmd/minisign@v0.2.1
 | 
			
		||||
 | 
			
		||||
# Download minio binary and signature file
 | 
			
		||||
# Download minio binary and signature files
 | 
			
		||||
RUN curl -s -q https://dl.min.io/server/minio/release/linux-${TARGETARCH}/archive/minio.${RELEASE} -o /go/bin/minio && \
 | 
			
		||||
    curl -s -q https://dl.min.io/server/minio/release/linux-${TARGETARCH}/archive/minio.${RELEASE}.minisig -o /go/bin/minio.minisig && \
 | 
			
		||||
    curl -s -q https://dl.min.io/server/minio/release/linux-${TARGETARCH}/archive/minio.${RELEASE}.shasum256 -o /go/bin/minio.shasum256 && \
 | 
			
		||||
    chmod +x /go/bin/minio
 | 
			
		||||
 | 
			
		||||
# Download mc binary and signature file
 | 
			
		||||
# Download mc binary and signature files
 | 
			
		||||
RUN curl -s -q https://dl.min.io/client/mc/release/linux-${TARGETARCH}/mc -o /go/bin/mc && \
 | 
			
		||||
    curl -s -q https://dl.min.io/client/mc/release/linux-${TARGETARCH}/mc.minisig -o /go/bin/mc.minisig && \
 | 
			
		||||
    curl -s -q https://dl.min.io/client/mc/release/linux-${TARGETARCH}/mc.shasum256 -o /go/bin/mc.shasum256 && \
 | 
			
		||||
    chmod +x /go/bin/mc
 | 
			
		||||
 | 
			
		||||
RUN if [ "$TARGETARCH" = "amd64" ]; then \
 | 
			
		||||
@ -53,7 +55,11 @@ ENV MINIO_ACCESS_KEY_FILE=access_key \
 | 
			
		||||
 | 
			
		||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
 | 
			
		||||
COPY --from=build /go/bin/minio /usr/bin/minio
 | 
			
		||||
COPY --from=build /go/bin/minio.minisig /usr/bin/minio.minisig
 | 
			
		||||
COPY --from=build /go/bin/minio.shasum256 /usr/bin/minio.shasum256
 | 
			
		||||
COPY --from=build /go/bin/mc /usr/bin/mc
 | 
			
		||||
COPY --from=build /go/bin/mc.minisig /usr/bin/mc.minisig
 | 
			
		||||
COPY --from=build /go/bin/mc.shasum256 /usr/bin/mc.shasum256
 | 
			
		||||
COPY --from=build /go/bin/cur* /usr/bin/
 | 
			
		||||
 | 
			
		||||
COPY CREDITS /licenses/CREDITS
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user