image-classification-service/Dockerfile_tests

28 lines
708 B
Plaintext

ARG BASE_ROOT="nexus.iqser.com:5001/red/"
ARG VERSION_TAG="dev"
FROM ${BASE_ROOT}image-prediction:${VERSION_TAG}
WORKDIR /app/service
COPY src src
COPY incl/pyinfra incl/pyinfra
COPY data data
COPY image_prediction image_prediction
COPY setup.py setup.py
COPY requirements.txt requirements.txt
COPY config.yaml config.yaml
COPY banner.txt banner.txt
# Install module & dependencies
RUN python3 -m pip install -r requirements.txt
RUN python3 -m pip install -e .
RUN python3 -m pip install incl/pyinfra
RUN apt update --yes
RUN apt install vim --yes
RUN apt install poppler-utils --yes
CMD coverage run -m pytest test/ --tb=native -q -s -vvv -x && coverage combine && coverage report -m && coverage xml