<file_sep>#! /bin/bash

if [[ -d  taiga-front-dist ]]; then
    rm -rf taiga-front-dist
fi

git clone -b stable --single-branch https://github.com/taigaio/taiga-front-dist.git

docker build -t xtraterrestrial/taiga-front .

<file_sep>-i https://pypi.org/simple
aggdraw==1.3.11
amqp==2.5.1
asana==0.6.7
asn1crypto==1.2.0
attrs==19.3.0
billiard==3.6.1.0
bleach==3.1.4
cairocffi==1.1.0
cairosvg==2.0.3
celery==4.3.0
certifi==2019.9.11
cffi==1.13.1
chardet==3.0.4
cryptography==2.3.1
cssselect==1.1.0
cssutils==1.0.2
diff-match-patch==20121119
django-ipware==1.1.6
django-jinja==2.3.1
django-pglocks==1.0.2
django-picklefield==0.3.2
django-sampledatahelper==0.4.1
django-sites==0.9
django-sr==0.0.4
Django>=1.11.27
djmail==1.0.1
docopt==0.6.2
easy-thumbnails==2.4.1
fn==0.4.3
gunicorn==19.9.0
html5lib==1.0.1
idna==2.8
importlib-metadata==0.23
jinja2==2.10.3
kombu==4.6.5
lxml==4.4.1
markdown==3.1.1
markupsafe==1.1.1
more-itertools==7.2.0
netaddr==0.7.19
oauthlib[signedtoken]==3.1.0
packbits==0.6
pillow==6.2.1
premailer==3.0.1
psd-tools==1.8.27
psycopg2-binary==2.7.5
pycparser==2.19
pygments==2.2.0
pyjwt==1.7.1
python-dateutil==2.7.5
python-magic==0.4.15
pytz==2019.3
raven==6.10.0
redis==2.10.5
requests-oauthlib==0.8.0
requests==2.21.0
sampledata==0.3.7
serpy==0.1.1
six==1.12.0
tinycss==0.4
unidecode==0.4.20
urllib3==1.24.3
vine==1.3.0
webcolors==1.9.1
webencodings==0.5.1
zipp==0.6.0
<file_sep>FROM python:3.5
MAINTAINER <NAME> "<EMAIL>"

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update  && apt-get autoremove -y && apt-get install locales -y
RUN locale-gen en_US.UTF-8 && dpkg-reconfigure locales

WORKDIR /usr/src/app/taiga-back

COPY taiga-back/requirements.txt .
RUN pip install -r requirements.txt

COPY docker-settings.py settings/local.py

COPY locale.gen /etc/locale.gen
COPY default.locale /etc/default/locale

COPY taiga-back .
COPY regenerate.sh .

EXPOSE 8000

VOLUME ["/taiga/static","/taiga/media"]

RUN locale -a

CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
