The project
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.

16 lines
529 B

FROM python:3-alpine3.6
RUN apk add --no-cache linux-headers bash gcc \
musl-dev libjpeg-turbo-dev libpng libpq \
postgresql-dev uwsgi uwsgi-python3 git \
zlib-dev libmagic libffi-dev libressl-dev python3-dev openldap-dev
ADD requirements.txt /site/
RUN pip install -U -r /site/requirements.txt
COPY ./ /site
CMD bash -c 'python3 migrate --noinput && python3 collectstatic --noinput && python3 create_test_users && uwsgi --ini=/site/uwsgi.ini'