-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile.build
23 lines (17 loc) · 948 Bytes
/
Dockerfile.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM quay.io/centos/centos:stream9
ENV VIRTUAL_ENV=/opt/venv\
PATH="$VIRTUAL_ENV/bin:$PATH"
RUN dnf update -y && dnf install -y epel-release &&\
dnf install -y 'dnf-command(config-manager)' &&\
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo &&\
dnf install -y jq gcc git make podman-remote docker-ce-cli skopeo python3 python3-pip &&\
# Upgrade pip
python3 -m venv ${VIRTUAL_ENV:-/opt/venv} && python3 -m pip install --upgrade pip
# Install kind
RUN curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.12.0/kind-linux-amd64 &&\
install kind /usr/local/bin/kind && rm -f kind
COPY --from=quay.io/openshift/origin-cli:4.10 /usr/bin/oc /usr/bin/kubectl /usr/bin/
COPY --from=ghcr.io/yannh/kubeconform:v0.4.14 /kubeconform /usr/bin
COPY ./requirements.txt ./requirements-dev.txt ./
RUN python3 -m pip install -r requirements.txt &&\
python3 -m pip install -r requirements-dev.txt