<gh_stars>1-10
FROM python:3.6

ENV PYTHONUNBUFFERED 1
ENV DJANGO_ENV dev

WORKDIR /code
COPY ./requirements.txt /code/
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

COPY . /code/

RUN useradd wagtail
RUN chown -R wagtail /code
USER wagtail
RUN chmod +x ./deploy_files/docker-entrypoint.sh

#RUN python manage.py compilescss
#RUN python manage.py  collectstatic --ignore=*.scss

#CMD exec gunicorn CMS.wsgi:application --bind 0.0.0.0:8000 --workers 3
#CMD exec gunicorn CMS.wsgi:application --name discover-uni-cms --bind 0.0.0.0:8000 --workers 3 --log-level=info --log-file=- --access-logfile=- --error-logfile=- --timeout 60
