Dockerfile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 virtualenvwrapper
  9. RUN apt-get install -y libxml2-dev libxslt-dev
  10. RUN apt-get install -y postgresql-9.4 postgresql-contrib-9.4 postgresql-server-dev-9.4
  11. RUN apt-get install -y nginx
  12. WORKDIR /app/code
  13. RUN virtualenv -p /usr/bin/python3.4 taiga
  14. ENV PATH /app/code/taga/bin:$PATH
  15. RUN easy_install pip
  16. ## circus process manager
  17. RUN pip install circus
  18. ## backend
  19. RUN git clone https://github.com/taigaio/taiga-back.git taiga-back
  20. WORKDIR /app/code/taiga-back
  21. RUN git checkout stable
  22. RUN pip install -r requirements.txt
  23. ## frontend
  24. WORKDIR /app/code
  25. RUN git clone https://github.com/taigaio/taiga-front-dist.git taiga-front-dist
  26. WORKDIR /app/code/taiga-front-dist
  27. RUN git checkout stable
  28. WORKDIR /app/code
  29. ADD circus.ini /app/code/circus.ini
  30. ADD circus.conf /etc/init/circus.conf
  31. RUN rm /etc/nginx/sites-enabled/default
  32. ADD taiga.nginx.conf /etc/nginx/sites-enabled/taiga
  33. ADD conf.json /app/code/taiga-front-dist/dist/js/conf.json
  34. ADD local.py /app/code/taiga-back/settings/local.py
  35. ADD start.sh /app/code/start.sh
  36. CMD [ "/app/code/start.sh" ]