Dockerfile 832 Bytes
Newer Older
1
FROM allgo/base-debian
CAMPION Sebastien's avatar
CAMPION Sebastien committed
2 3 4 5 6

# install system packages
# Installation of gunicorn through pip because the debian package
# python3-gunicorn doesn't install any binary

7 8
# configure stretch backports
COPY setup/backports/. /
CAMPION Sebastien's avatar
CAMPION Sebastien committed
9

10
RUN apt-getq update && apt-getq install mysql-server default-libmysqlclient-dev \
11
  python3-django python3-django-allauth python3-misaka \
12
  nginx-light zip gcc python3-dev python3-pip python3-wheel python3-mysqldb	\
13 14
  python-mysqldb python3-crypto supervisor python3-redis python-mysqldb \
  python3-crypto python3-djangorestframework supervisor \
15
  && pip3 install gunicorn
CAMPION Sebastien's avatar
CAMPION Sebastien committed
16

17 18 19
COPY requirements.txt /tmp/
RUN cd /tmp && pip3 install -r requirements.txt && rm requirements.txt

CAMPION Sebastien's avatar
CAMPION Sebastien committed
20
COPY	. /opt/allgo
21
RUN	sh /opt/allgo/setup/setup.sh
CAMPION Sebastien's avatar
CAMPION Sebastien committed
22 23 24

WORKDIR /opt/allgo
LABEL   dk.migrate_always=1
CAMPION Sebastien's avatar
CAMPION Sebastien committed
25
ENV PYTHONUNBUFFERED 1
CAMPION Sebastien's avatar
CAMPION Sebastien committed
26
CMD run-allgo