Dockerfile.armhf 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. FROM armhf/debian:wheezy
  2. RUN set -ex; \
  3. apt-get update -qq; \
  4. apt-get install -y \
  5. locales \
  6. gcc \
  7. make \
  8. zlib1g \
  9. zlib1g-dev \
  10. libssl-dev \
  11. git \
  12. ca-certificates \
  13. curl \
  14. libsqlite3-dev \
  15. libbz2-dev \
  16. ; \
  17. rm -rf /var/lib/apt/lists/*
  18. RUN curl https://get.docker.com/builds/Linux/armel/docker-1.8.3 \
  19. -o /usr/local/bin/docker && \
  20. chmod +x /usr/local/bin/docker
  21. # Build Python 2.7.13 from source
  22. RUN set -ex; \
  23. curl -L https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz | tar -xz; \
  24. cd Python-2.7.13; \
  25. ./configure --enable-shared; \
  26. make; \
  27. make install; \
  28. cd ..; \
  29. rm -rf /Python-2.7.13
  30. # Build python 3.4 from source
  31. RUN set -ex; \
  32. curl -L https://www.python.org/ftp/python/3.4.6/Python-3.4.6.tgz | tar -xz; \
  33. cd Python-3.4.6; \
  34. ./configure --enable-shared; \
  35. make; \
  36. make install; \
  37. cd ..; \
  38. rm -rf /Python-3.4.6
  39. # Make libpython findable
  40. ENV LD_LIBRARY_PATH /usr/local/lib
  41. # Install pip
  42. RUN set -ex; \
  43. curl -L https://bootstrap.pypa.io/get-pip.py | python
  44. # Python3 requires a valid locale
  45. RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
  46. ENV LANG en_US.UTF-8
  47. RUN useradd -d /home/user -m -s /bin/bash user
  48. WORKDIR /code/
  49. RUN pip install tox==2.1.1
  50. ADD requirements.txt /code/
  51. ADD requirements-dev.txt /code/
  52. ADD .pre-commit-config.yaml /code/
  53. ADD setup.py /code/
  54. ADD tox.ini /code/
  55. ADD compose /code/compose/
  56. RUN tox --notest
  57. ADD . /code/
  58. RUN chown -R user /code/
  59. ENTRYPOINT ["/code/.tox/py27/bin/docker-compose"]