From 475522e7e604193601511477886d991f75f2b43c Mon Sep 17 00:00:00 2001 From: Michael Vorotyntsev Date: Fri, 13 Dec 2024 19:21:37 +0700 Subject: [PATCH] Updating base image --- Dockerfile | 2 +- Dockerfile.test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"]