mirror of
https://github.com/openziti/ziti.git
synced 2026-10-13 07:41:17 +00:00
31 lines
836 B
Docker
31 lines
836 B
Docker
# this builds docker.io/openziti/ziti-cli
|
|
FROM registry.access.redhat.com/ubi8/ubi-minimal
|
|
# This build stage grabs artifacts that are copied into the final image.
|
|
# It uses the same base as the final image to maximize docker cache hits.
|
|
|
|
ARG ARTIFACTS_DIR=./release
|
|
# e.g. linux
|
|
ARG TARGETOS
|
|
# e.g. arm
|
|
ARG TARGETARCH
|
|
# e.g. v7 (OS variant)
|
|
# TARGETVARIANT
|
|
|
|
### Required OpenShift Labels
|
|
LABEL name="openziti/ziti-cli" \
|
|
maintainer="developers@openziti.org" \
|
|
vendor="NetFoundry" \
|
|
summary="Run the OpenZiti CLI" \
|
|
description="Run the OpenZiti CLI"
|
|
|
|
### add licenses to this directory
|
|
RUN mkdir -m0755 /licenses
|
|
COPY ./LICENSE /licenses/apache.txt
|
|
|
|
RUN mkdir -p /usr/local/bin
|
|
COPY ${ARTIFACTS_DIR}/${TARGETARCH}/${TARGETOS}/ziti /usr/local/bin/
|
|
RUN chmod 0755 /usr/local/bin/ziti
|
|
USER nobody
|
|
|
|
CMD [ "ziti" ]
|