aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/molecule/default/Dockerfile.j2
blob: 74be8a00bb88324814d0e750b0b8fd79ee3c5106 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM {{ item.image }}

# Install dependencies.
RUN if [ $(command -v apt-get) ]; then \
        apt-get update \
            && apt-get install -y --no-install-recommends \
            sudo wget \
            python3-pip python3-dev python3-setuptools python3-wheel python3-apt \
            && rm -rf /var/lib/apt/lists/* \
            && rm -Rf /usr/share/doc && rm -Rf /usr/share/man \
            && apt-get clean; \
    elif [ $(command -v apk) ]; then \
        apk update && apk add --no-cache python3 sudo bash ca-certificates; \
    elif [ $(command -v yum) ]; then \
        yum -y update && yum -y install sudo python3; \
    elif [ $(command -v dnf) ]; then \
        dnf makecache && dnf --assumeyes install \
        python sudo python-devel python3-dnf bash iproute && dnf clean all; \
    elif [ $(command -v pacman) ]; then \
        pacman -Syu --noconfirm python3 sudo; \
    fi

ENTRYPOINT ["bash", "-c", "sleep infinity"]