Dockerfile 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. FROM debian:jessie
  2. MAINTAINER contact@algoo.fr
  3. # TODO: See GOOD PRATICE (remove apt lists, cache, etc)
  4. # Install required packages
  5. RUN apt-get update -q \
  6. && DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
  7. git \
  8. locales \
  9. realpath \
  10. python3 \
  11. python3-dev \
  12. python3-pip \
  13. build-essential \
  14. libxml2-dev \
  15. libxslt1-dev \
  16. python-lxml \
  17. postgresql-server-dev-all \
  18. postgresql \
  19. postgresql-client \
  20. uwsgi \
  21. uwsgi-plugin-python3 \
  22. postgresql-server-dev-all \
  23. postgresql \
  24. postgresql-client \
  25. mysql-server \
  26. mysql-client \
  27. libmysqlclient-dev \
  28. sqlite3 \
  29. default-jdk
  30. # Ensure UTF-8
  31. RUN locale-gen en_US.UTF-8 en_us \
  32. && dpkg-reconfigure locales \
  33. && locale-gen C.UTF-8 \
  34. && /usr/sbin/update-locale LANG=C.UTF-8
  35. ENV LANG C.UTF-8
  36. ENV LANGUAGE C.UTF-8
  37. ENV LC_ALL C.UTF-8
  38. # Download and install Tracim
  39. RUN git clone https://github.com/tracim/tracim.git \
  40. && cd /tracim/tracim \
  41. && python3 setup.py develop \
  42. && cd /tracim \
  43. && pip3 install -r install/requirements.txt \
  44. && pip3 install https://launchpad.net/oursql/py3k/py3k-0.9.4/+download/oursql-0.9.4.zip
  45. # Copy needed files
  46. COPY entrypoint.sh /tracim/entrypoint.sh
  47. # Set the default entry point
  48. CMD ["/tracim/entrypoint.sh"]