Dockerfile 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. FROM debian:jessie
  2. MAINTAINER contact@algoo.fr
  3. # TODO: See GOOD PRATICE (remove apt lists, 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. # Ensure UTF-8
  23. RUN locale-gen en_US.UTF-8 en_us \
  24. && dpkg-reconfigure locales \
  25. && dpkg-reconfigure locales \
  26. && locale-gen C.UTF-8 \
  27. && /usr/sbin/update-locale LANG=C.UTF-8
  28. ENV LANG C.UTF-8
  29. ENV LANGUAGE C.UTF-8
  30. ENV LC_ALL C.UTF-8
  31. # Download and install Tracim
  32. RUN git clone https://github.com/tracim/tracim.git \
  33. && cd /tracim/tracim \
  34. && python3 setup.py develop \
  35. && cd /tracim \
  36. && pip3 install -r install/requirements.txt
  37. # Copy needed files
  38. COPY uwsgi.ini /etc/uwsgi/apps-available/tracim.ini
  39. COPY wsgi.py /tracim/tracim/wsgi.py
  40. COPY entrypoint.sh /tracim/entrypoint.sh
  41. # Set the default entry point
  42. CMD ["/tracim/entrypoint.sh"]