Dockerfile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. FROM cloudron/base:0.3.1
  2. MAINTAINER Taiga Authors <support@cloudron.io>
  3. EXPOSE 8000
  4. RUN apt-get update
  5. RUN apt-get install -y build-essential binutils-doc autoconf flex bison libjpeg-dev
  6. RUN apt-get install -y libfreetype6-dev zlib1g-dev libzmq3-dev libgdbm-dev libncurses5-dev
  7. RUN apt-get install -y automake libtool libffi-dev curl git tmux gettext
  8. RUN apt-get install -y python3 python3-pip python-dev python3-dev python-pip virtualenvwrapper
  9. RUN apt-get install -y libxml2-dev libxslt-dev
  10. RUN apt-get install -y nginx
  11. ## backend
  12. WORKDIR /app/code
  13. RUN git clone https://github.com/taigaio/taiga-back.git taiga-back
  14. WORKDIR /app/code/taiga-back
  15. RUN git checkout stable
  16. # RUN mkvirtualenv -p /usr/bin/python3.4 taiga
  17. RUN apt-get install -y postgresql-9.4 postgresql-contrib-9.4
  18. RUN apt-get install -y postgresql-server-dev-9.4
  19. RUN pip install -r requirements.txt
  20. ## frontend
  21. WORKDIR /app/code
  22. RUN git clone https://github.com/taigaio/taiga-front-dist.git taiga-front-dist
  23. WORKDIR /app/code/taiga-front-dist
  24. RUN git checkout stable
  25. ## circus process manager
  26. RUN pip2 install circus
  27. ADD circus.ini /app/code/circus.ini
  28. ADD circus.conf /etc/init/circus.conf
  29. RUN rm /etc/nginx/sites-enabled/default
  30. ADD taiga.nginx.conf /etc/nginx/sites-enabled/taiga
  31. ADD conf.json /app/code/taiga-front-dist/dist/js/conf.json
  32. ADD local.py /app/code/taiga-back/settings/local.py
  33. ADD start.sh /app/code/start.sh
  34. CMD [ "/app/code/start.sh" ]