docker-ovh/django-cas-server/Dockerfile

22 lines
463 B
Docker
Raw Normal View History

2020-02-03 14:07:50 +01:00
FROM python:3-buster
ENV PYTHONUNBUFFERED 1
ENV DJANGO_DB_NAME=cas
ENV DJANGO_DB_HOST=postgres
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