gitpod/components/ipfs/ipfs-cluster/leeway.Dockerfile

21 lines
600 B
Docker

# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL).
# See License.AGPL.txt in the project root for license information.
ARG VERSION
FROM alpine as dependencies
RUN apk add -U wget
RUN wget -O /jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 \
&& chmod +x /jq
RUN wget -O /kubectl https://dl.k8s.io/release/v1.24.3/bin/linux/amd64/kubectl \
&& chmod +x /kubectl
FROM docker.io/ipfs/ipfs-cluster:${VERSION}
COPY --from=dependencies /jq /usr/bin/jq
COPY --from=dependencies /kubectl /usr/bin/kubectl