Dockerfile 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. FROM cloudron/base:0.9.0
  2. MAINTAINER Johannes Zellner <support@cloudron.io>
  3. RUN mkdir -p /app/code
  4. WORKDIR /app/code
  5. # RUN apt-get update && apt-get install -y \
  6. # build-essential binutils-doc autoconf flex bison libjpeg-dev libfreetype6-dev \
  7. # zlib1g-dev libzmq3-dev libgdbm-dev libncurses5-dev automake libtool libffi-dev curl git tmux \
  8. # gettext python3 python3-pip python-dev python3-dev virtualenvwrapper libxml2-dev libxslt-dev \
  9. # postgresql-9.4 postgresql-contrib-9.4 postgresql-server-dev-9.4 nginx
  10. RUN apt-get update && apt-get install -y \
  11. build-essential binutils-doc autoconf flex bison libjpeg-dev \
  12. libfreetype6-dev zlib1g-dev libzmq3-dev libgdbm-dev libncurses5-dev \
  13. automake libtool libffi-dev curl git tmux gettext \
  14. python3 python3-pip python-dev python3-dev python-pip virtualenvwrapper \
  15. postgresql-9.5 postgresql-contrib-9.5 postgresql-server-dev-9.5 nginx \
  16. libxml2-dev libxslt-dev
  17. ## backend
  18. RUN mkdir /app/code/taiga-back
  19. RUN curl -L https://github.com/taigaio/taiga-back/archive/3.0.0.tar.gz | tar -xz -C /app/code/taiga-back --strip-components 1 -f -
  20. ## frontend
  21. RUN mkdir /app/code/taiga-front-dist
  22. RUN curl -L https://github.com/taigaio/taiga-front-dist/archive/3.0.0-stable.tar.gz | tar -xz -C /app/code/taiga-front-dist --strip-components 1 -f -
  23. RUN rm -rf /app/code/taiga-back/media && \
  24. ln -s /app/data/media /app/code/taiga-back/media
  25. ## install all deps in a python virtual env
  26. ADD build.sh /app/code/build.sh
  27. RUN /app/code/build.sh
  28. RUN rm -rf /var/log/nginx && mkdir /run/nginx && ln -s /run/nginx /var/log/nginx
  29. RUN rm -f /app/code/taiga-back/settings/local.py && ln -s /run/local.py /app/code/taiga-back/settings/local.py
  30. RUN rm -f /app/code/taiga-front-dist/dist/conf.json && ln -s /run/conf.json /app/code/taiga-front-dist/dist/conf.json
  31. ADD nginx.conf conf.json conf_ldap.json local.py local_ldap.py start.sh /app/code/
  32. CMD [ "/app/code/start.sh" ]