From 528d99e420a949f3b11599089a589bf18d5ea769 Mon Sep 17 00:00:00 2001 From: Oleg Ovcharuk Date: Wed, 25 Sep 2024 12:00:36 +0300 Subject: [PATCH 1/2] add .dockerignore not to copy the whole repo for slo --- .dockerignore | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..90fe8e80 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +* +!tests/slo +!ydb/ +!README.md +!requirements.txt +!pyproject.toml +!setup.py \ No newline at end of file From f2b8a55a87bc101b09ba2236fd6d3e03a2df0971 Mon Sep 17 00:00:00 2001 From: Oleg Ovcharuk Date: Wed, 25 Sep 2024 13:52:20 +0300 Subject: [PATCH 2/2] change docker base image to python slim --- tests/slo/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/slo/Dockerfile b/tests/slo/Dockerfile index e705e624..7a8cc494 100644 --- a/tests/slo/Dockerfile +++ b/tests/slo/Dockerfile @@ -1,7 +1,9 @@ -FROM python:3.8 +FROM python:3.8-slim COPY . /src WORKDIR /src -RUN python -m pip install --upgrade pip && python -m pip install -e . && python -m pip install -r tests/slo/requirements.txt +RUN python -m pip install --no-cache-dir --upgrade pip && \ + python -m pip install --no-cache-dir -e . && \ + python -m pip install --no-cache-dir -r tests/slo/requirements.txt WORKDIR tests/slo ARG SDK_SERVICE ENV SDK_SERVICE=$SDK_SERVICE