fids/auth-domain/user-manager/Dockerfile.test

21 lines
519 B
Docker

# pull official base image
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ENV FLASK_DEBUG=1
ENV FLASK_ENV=development
ENV DATABASE_TEST_URL=postgresql://postgres:postgres@usermanager-db:5432/api_test
# add and install requirements
COPY --chown=python:python ./requirements.test.txt .
RUN python -m pip install -r requirements.test.txt
# add app
COPY --chown=python:python src/tests src/tests
# new
# add entrypoint.sh
COPY --chown=python:python src/.cicd/test.sh .
RUN chmod +x /usr/src/app/test.sh
CMD ["/usr/src/app/test.sh"]