mirror of
https://github.com/bitnami/containers.git
synced 2026-03-06 15:09:19 +08:00
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
35 lines
1.4 KiB
Docker
35 lines
1.4 KiB
Docker
FROM bitnami/minideb:bullseye as builder
|
|
|
|
COPY prebuildfs /
|
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl gzip tar
|
|
RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \
|
|
if [ ! -f oras-0.14.0-1-linux-amd64-debian-11.tar.gz ]; then \
|
|
curl -SsLf https://downloads.bitnami.com/files/stacksmith/oras-0.14.0-1-linux-amd64-debian-11.tar.gz -O ; \
|
|
fi && \
|
|
echo "ca446944b3a7c86b88a509d45f05ae49bebc0bc56a1ec4212f27ac933bc5edc2 oras-0.14.0-1-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \
|
|
tar -zxf oras-0.14.0-1-linux-amd64-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --wildcards '*/files' && \
|
|
rm -rf oras-0.14.0-1-linux-amd64-debian-11.tar.gz
|
|
|
|
######
|
|
|
|
FROM scratch
|
|
|
|
LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \
|
|
org.opencontainers.image.description="Application packaged by Bitnami" \
|
|
org.opencontainers.image.ref.name="0.14.0-scratch-r1" \
|
|
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/oras" \
|
|
org.opencontainers.image.title="oras" \
|
|
org.opencontainers.image.vendor="VMware, Inc." \
|
|
org.opencontainers.image.version="0.14.0"
|
|
COPY prebuildfs /
|
|
COPY rootfs /
|
|
COPY --from=builder /opt/bitnami/oras/bin/oras /oras
|
|
|
|
USER 1001
|
|
|
|
ENTRYPOINT [ "/oras" ]
|