taiga/Dockerfile

61 lines
1.7 KiB
Docker
Raw Permalink Normal View History

2017-06-27 21:27:00 +00:00
FROM debian:stretch
2016-04-10 17:21:26 +00:00
MAINTAINER "Andrey Arapov <andrey.arapov@nixaid.com>"
2016-05-04 20:28:50 +00:00
EXPOSE 80
2016-04-10 17:21:26 +00:00
# To avoid problems with Dialog and curses wizards
ENV DEBIAN_FRONTEND noninteractive
# OS & Python env deps for taiga-back
2017-06-27 21:27:00 +00:00
RUN apt-get update \
2016-04-10 17:21:26 +00:00
&& apt-get install -y -- build-essential binutils-doc autoconf flex \
bison libjpeg-dev libfreetype6-dev zlib1g-dev libzmq3-dev \
libgdbm-dev libncurses5-dev automake libtool libffi-dev curl git \
2017-06-27 21:27:00 +00:00
tmux gettext python3 python3-dev python3-pip libxml2-dev \
libxslt-dev virtualenvwrapper libssl1.0-dev \
nginx && \
rm -rf -- /var/lib/apt/lists/*
2016-04-10 17:21:26 +00:00
RUN pip3 install circus gunicorn
# Create taiga user
ENV USER taiga
ENV UID 1000
ENV GROUP www-data
ENV HOME /home/$USER
ENV DATA /opt/taiga
2016-04-10 17:21:26 +00:00
RUN useradd -u $UID -m -d $HOME -s /usr/sbin/nologin -g $GROUP $USER
RUN mkdir -p $DATA $DATA/media $DATA/static $DATA/logs /var/log/taiga \
2016-05-20 16:12:19 +00:00
&& chown -Rh $USER:$GROUP /var/log/taiga
2016-04-10 17:21:26 +00:00
WORKDIR $DATA
2016-05-20 16:12:19 +00:00
2017-06-27 21:27:00 +00:00
RUN ln -svf /bin/bash /bin/sh
2016-05-20 16:12:19 +00:00
# Install taiga-back
2017-12-13 00:31:31 +00:00
RUN git clone -b 3.1.0 https://github.com/taigaio/taiga-back.git taiga-back \
2017-06-27 21:27:00 +00:00
&& source /usr/share/virtualenvwrapper/virtualenvwrapper.sh \
&& mkvirtualenv -p /usr/bin/python3.5 venvtaiga \
&& workon venvtaiga \
2016-05-20 16:12:19 +00:00
&& cd taiga-back \
2017-06-27 21:27:00 +00:00
&& pip3 install --upgrade setuptools \
2016-04-10 17:21:26 +00:00
&& pip3 install -r requirements.txt \
&& deactivate
# Install taiga-front (compiled)
2017-12-13 00:31:31 +00:00
RUN git clone -b 3.1.0-stable https://github.com/taigaio/taiga-front-dist.git taiga-front-dist
2016-05-20 16:12:19 +00:00
COPY robots.txt taiga-front-dist/dist/robots.txt
2016-04-10 17:21:26 +00:00
USER root
# Cleanups
RUN rm -f /etc/nginx/sites-enabled/default
# Copy template seeds
COPY seeds/*.tmpl /tmp/
VOLUME [ "$DATA/static", \
"$DATA/media" ]
COPY launch /
CMD /launch