podusowski/spartan

View on GitHub
Dockerfile

Summary

Maintainability
Test Coverage
FROM python:3.6
ENV PYTHONBUFFERED 1

RUN apt-get -y update && \
    apt-get -y install ruby-sass

RUN mkdir /files

RUN mkdir /code
WORKDIR /code

ADD requirements.txt /code
RUN pip install -r requirements.txt

ADD . /code
RUN chmod 755 /code

RUN python manage.py collectstatic
RUN python manage.py compress --force

EXPOSE 8000
CMD ["./docker-entrypoint.sh"]