diff --git a/Dockerfile b/Dockerfile index ead8ea6..7dd4f00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ WORKDIR /jd2cw COPY jd2cw /jd2cw/jd2cw COPY setup.py /jd2cw/ RUN python3 --version && python3 -c 'import systemd' -RUN python3 -m pip install ./ +RUN pip install ./ RUN apt-get clean && rm -r ~/.cache && apt autoremove -y --purge && rm -rf /var/lib/apt/lists/* # Set the entrypoint and default command diff --git a/Dockerfile.test b/Dockerfile.test index f2c2f28..72158fa 100644 --- a/Dockerfile.test +++ b/Dockerfile.test @@ -1,6 +1,6 @@ FROM journald-2-cloudwatch -RUN python3 -m pip install requests-mock==1.8.0 botocore==1.10.84 'pytest<7.0' pytest-cov && python3 -c 'import pip,pytest' +RUN pip install requests-mock==1.8.0 botocore==1.10.84 'pytest<7.0' pytest-cov && python3 -c 'import pip,pytest' # botocore==1.10.84 <- is a monkeypatching 6 years old for passing tests in the developing process of release 0.2.0 version ENTRYPOINT ["python3", "-m", "pytest", "-ocache_dir=/dev/null", "/jd2cw/tests", "-vv", "--cov=jd2cw", "--cov-report=term", "--cov-report=xml:/tmp/codecov/coverage.xml"]