Dockerfile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 pip install -r requirements.txt
  18. ## frontend
  19. WORKDIR /app/code
  20. RUN git clone https://github.com/taigaio/taiga-front-dist.git taiga-front-dist
  21. WORKDIR /app/code/taiga-front-dist
  22. RUN git checkout stable
  23. ## circus process manager
  24. RUN pip2 install circus
  25. ADD circus.ini /app/code/circus.ini
  26. ADD circus.conf /etc/init/circus.conf
  27. RUN rm /etc/nginx/sites-enabled/default
  28. ADD taiga.nginx.conf /etc/nginx/sites-enabled/taiga
  29. ADD start.sh /app/code/start.sh
  30. CMD [ "/app/code/start.sh" ]