Dockerfile 917 B

12345678910111213141516171819202122232425262728293031323334
  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. RUN echo \
  22. && apk add --no-cache $PACKAGES \
  23. && if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python2.7 /usr/bin/python; fi \
  24. && if [[ ! -e /usr/bin/python-config ]]; then ln -sf /usr/bin/python2.7-config /usr/bin/python-config; fi \
  25. && if [[ ! -e /usr/bin/easy_install ]]; then ln -sf /usr/bin/easy_install-2.7 /usr/bin/easy_install; fi \
  26. && easy_install pip \
  27. && pip install --upgrade pip \
  28. && if [[ ! -e /usr/bin/pip ]]; then ln -sf /usr/bin/pip2.7 /usr/bin/pip; fi \
  29. && echo
  30. ADD ssd.py /
  31. RUN pip install git+git://github.com/docker/docker-py.git
  32. ENTRYPOINT [ "python", "/ssd.py"]