FROM wazoplatform/wazo-auth

ENV PYTHONDONTWRITEBYTECODE='true'

COPY integration_tests/assets/external_auth/service_plugin /usr/src/external_auth_service_plugin
WORKDIR /usr/src/external_auth_service_plugin
RUN python3 setup.py install

COPY integration_tests/assets/metadata/internal_token /usr/src/metadata_internal_token
WORKDIR /usr/src/metadata_internal_token
RUN python3 setup.py install

COPY integration_tests/assets/email_notification/logger /usr/src/email_notification_logger
WORKDIR /usr/src/email_notification_logger
RUN python3 setup.py install

COPY integration_tests/assets/broken_idp /usr/src/broken_idp
WORKDIR /usr/src/broken_idp
RUN python3 setup.py install

COPY . /usr/src/wazo-auth
WORKDIR /usr/src/wazo-auth
RUN python3 -m pip install -e .
