-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
39 lines (29 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# syntax=docker/dockerfile:1
FROM stackable/image/stackable-base
ARG PRODUCT
ARG KUBECTL_VERSION
ARG RELEASE
ARG JQ_VERSION
LABEL name="Stackable Tools" \
maintainer="info@stackable.tech" \
vendor="Stackable GmbH" \
version="${PRODUCT}" \
release="${RELEASE}" \
summary="Stackable Tools for Kubernetes." \
description="Stackable Tools for Kubernetes."
# https://github.com/hadolint/hadolint/wiki/DL4006
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN microdnf update && \
microdnf install iputils tar gzip zip openssl gettext && \
microdnf clean all
COPY tools/licenses /licenses
USER stackable
WORKDIR /stackable/bin
ENV PATH=/stackable/bin:$PATH
# Get latest stable version from curl -L -s https://dl.k8s.io/release/stable.txt
RUN curl -L https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl \
-o /stackable/bin/kubectl && chmod +x /stackable/bin/kubectl
RUN curl -L https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 \
-o /stackable/bin/jq && \
chmod +x /stackable/bin/jq
USER stackable