Dockerfile 1.3 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 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. ## backend
  14. RUN git clone https://github.com/taigaio/taiga-back.git taiga-back
  15. WORKDIR /app/code/taiga-back
  16. RUN git checkout stable
  17. ## frontend
  18. WORKDIR /app/code
  19. RUN git clone https://github.com/taigaio/taiga-front-dist.git taiga-front-dist
  20. WORKDIR /app/code/taiga-front-dist
  21. RUN git checkout stable
  22. WORKDIR /app/code
  23. ADD build.sh /app/code/build.sh
  24. RUN /app/code/build.sh
  25. ADD circus.ini /app/code/circus.ini
  26. RUN rm /etc/nginx/sites-enabled/default
  27. ADD taiga.nginx.conf /etc/nginx/sites-enabled/taiga
  28. ADD conf.json /app/code/taiga-front-dist/dist/js/conf.json
  29. ADD local.py /app/code/taiga-back/settings/local.py
  30. ADD start.sh /app/code/start.sh
  31. CMD [ "/app/code/start.sh" ]