2020-02-03 14:07:50 +01:00
|
|
|
FROM python:3-buster
|
|
|
|
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
ENV DJANGO_DB_NAME=cas
|
2021-10-29 15:45:28 +02:00
|
|
|
ENV DJANGO_DB_HOST=bdd-ovh.adm.auro.re
|
2020-02-03 14:07:50 +01:00
|
|
|
ENV DJANGO_DB_USER=cas
|
|
|
|
ENV DJANGO_HOST=cas.auro.re
|
2021-02-07 13:18:19 +01:00
|
|
|
ENV DJANGO_CAS_LDAP_SERVER=10.128.0.21
|
2020-02-03 14:07:50 +01:00
|
|
|
ENV DJANGO_CAS_LDAP_USER=cn=cas,ou=service-users,dc=auro,dc=re
|
|
|
|
ENV DJANGO_CAS_LDAP_BASE_DN=cn=Utilisateurs,dc=auro,dc=re
|
|
|
|
|
|
|
|
RUN mkdir /code
|
|
|
|
WORKDIR /code
|
|
|
|
|
|
|
|
COPY requirements.txt /code/
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
COPY . /code/
|
|
|
|
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|
|
|
|
EXPOSE 8000
|