diff --git a/Dockerfile b/Dockerfile index 76f10c1..5e80f3c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,20 +25,23 @@ ENV HOME /home/$USER 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 $DATA /var/log/taiga + && chown -Rh $USER:$GROUP /var/log/taiga -# Install taiga-back -USER $USER WORKDIR $DATA -RUN git clone -b stable https://github.com/taigaio/taiga-back.git $DATA/taiga-back \ + +# Install taiga-back +RUN git clone -b stable https://github.com/taigaio/taiga-back.git taiga-back \ && virtualenv -p /usr/bin/python3.4 venvtaiga \ && . venvtaiga/bin/activate \ - && cd $DATA/taiga-back \ + && cd taiga-back \ && pip3 install -r requirements.txt \ && deactivate # Install taiga-front (compiled) -RUN git clone -b stable https://github.com/taigaio/taiga-front-dist.git $DATA/taiga-front-dist +RUN git clone -b stable https://github.com/taigaio/taiga-front-dist.git taiga-front-dist +COPY robots.txt taiga-front-dist/dist/robots.txt + +USER $USER USER root diff --git a/launch b/launch index 3405a7c..799175b 100755 --- a/launch +++ b/launch @@ -44,8 +44,8 @@ chmod +x /already_initialized # Keep sensitive information out of here unset DJANGO_SECRET_KEY TAIGA_DB_PASSWORD -# Make sure the data is readable -chown -Rh $USER:$GROUP $DATA +# Make sure the dynamic data is writable by the circus/gunicorn +chown -Rh $USER:$GROUP $DATA/media $DATA/taiga-back/taiga/locale $DATA/logs # Make sure the PostgreSQL database is up and ready while ! ping -c 1 -W 1 $TAIGA_DB_HOST >/dev/null 2>&1; do diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..d3712fb --- /dev/null +++ b/robots.txt @@ -0,0 +1,7 @@ +# Tell robots we don't want indexation +User-agent: * +Disallow: / + +# You rush a miracle man, you get rotten miracles. +# +# -- Miracle Max --