Dockerfile 591 Bytes
Newer Older
1
FROM allgo/base-debian
CAMPION Sebastien's avatar
CAMPION Sebastien committed
2

3 4
# configure stretch backports
COPY setup/backports/. /
CAMPION Sebastien's avatar
CAMPION Sebastien committed
5

6
RUN apt-getq update && apt-getq install default-libmysqlclient-dev \
7
  python3-django python3-django-allauth python3-misaka \
8
  nginx-light zip gcc python3-dev python3-pip python3-wheel python3-mysqldb	\
BAIRE Anthony's avatar
BAIRE Anthony committed
9
  python-mysqldb python3-crypto gunicorn3
CAMPION Sebastien's avatar
CAMPION Sebastien committed
10

11 12 13
COPY requirements.txt /tmp/
RUN cd /tmp && pip3 install -r requirements.txt && rm requirements.txt

CAMPION Sebastien's avatar
CAMPION Sebastien committed
14
COPY	. /opt/allgo
15
RUN	sh /opt/allgo/setup/setup.sh
CAMPION Sebastien's avatar
CAMPION Sebastien committed
16 17 18

WORKDIR /opt/allgo
LABEL   dk.migrate_always=1
CAMPION Sebastien's avatar
CAMPION Sebastien committed
19
ENV PYTHONUNBUFFERED 1
CAMPION Sebastien's avatar
CAMPION Sebastien committed
20
CMD run-allgo
21
HEALTHCHECK CMD healthcheck