github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/libnetwork/cmd/ssd/Dockerfile (about)

     1  FROM alpine:3.7
     2  ENV PACKAGES="\
     3      musl \
     4      linux-headers \
     5      build-base \
     6      util-linux \
     7      bash \
     8      git \
     9      ca-certificates \
    10      python2 \
    11      python2-dev \
    12      py-setuptools \
    13      iproute2 \
    14      curl \
    15      strace \
    16      drill \
    17      ipvsadm \
    18      iperf \
    19      ethtool \
    20  "
    21  
    22  RUN echo \
    23      && apk add --no-cache $PACKAGES \
    24      && if [[ ! -e /usr/bin/python ]];        then ln -sf /usr/bin/python2.7 /usr/bin/python; fi \
    25      && if [[ ! -e /usr/bin/python-config ]]; then ln -sf /usr/bin/python2.7-config /usr/bin/python-config; fi \
    26      && if [[ ! -e /usr/bin/easy_install ]];  then ln -sf /usr/bin/easy_install-2.7 /usr/bin/easy_install; fi \
    27      && easy_install pip \
    28      && pip install --upgrade pip \
    29      && if [[ ! -e /usr/bin/pip ]]; then ln -sf /usr/bin/pip2.7 /usr/bin/pip; fi \
    30      && echo
    31  
    32  ADD ssd.py /
    33  RUN pip install git+git://github.com/docker/docker-py.git
    34  ENTRYPOINT [ "python", "/ssd.py"]