Add Dockerfile for running the unittests

Build the docker with the command
    docker build -f test/Dockerfile -t precise-test .
pull/139/head
Åke Forslund 2020-04-01 09:42:04 +02:00
parent 2a15272ba3
commit a99d229b0c
1 changed files with 10 additions and 0 deletions

10
test/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM python:3.7-slim
ENV TERM linux
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y install git python3-scipy cython libhdf5-dev python3-h5py portaudio19-dev swig libpulse-dev libatlas-base-dev
ADD . mycroft-precise
WORKDIR mycroft-precise
RUN pip install .
RUN pip install pytest
ENV PYTHONPATH /mycroft-precise
ENTRYPOINT ["pytest"]