You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.7 KiB

FROM debian:stretch
MAINTAINER "Andrey Arapov <>"
# To avoid problems with Dialog and curses wizards
ENV DEBIAN_FRONTEND noninteractive
# OS & Python env deps for taiga-back
RUN apt-get update \
&& 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 \
tmux gettext python3 python3-dev python3-pip libxml2-dev \
libxslt-dev virtualenvwrapper libssl1.0-dev \
nginx && \
rm -rf -- /var/lib/apt/lists/*
RUN pip3 install circus gunicorn
# Create taiga user
ENV USER taiga
ENV UID 1000
ENV GROUP www-data
ENV DATA /opt/taiga
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 \
&& chown -Rh $USER:$GROUP /var/log/taiga
RUN ln -svf /bin/bash /bin/sh
# Install taiga-back
RUN git clone -b 3.1.0 taiga-back \
&& source /usr/share/virtualenvwrapper/ \
&& mkvirtualenv -p /usr/bin/python3.5 venvtaiga \
&& workon venvtaiga \
&& cd taiga-back \
&& pip3 install --upgrade setuptools \
&& pip3 install -r requirements.txt \
&& deactivate
# Install taiga-front (compiled)
RUN git clone -b 3.1.0-stable taiga-front-dist
COPY robots.txt taiga-front-dist/dist/robots.txt
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