Skip to content

Commit 3630931

Browse files
authored
Merge pull request #493 from ydb-platform/reduce_docker_size
reduce slo docker image size
2 parents 4877cc8 + f2b8a55 commit 3630931

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*
2+
!tests/slo
3+
!ydb/
4+
!README.md
5+
!requirements.txt
6+
!pyproject.toml
7+
!setup.py

tests/slo/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
FROM python:3.8
1+
FROM python:3.8-slim
22
COPY . /src
33
WORKDIR /src
4-
RUN python -m pip install --upgrade pip && python -m pip install -e . && python -m pip install -r tests/slo/requirements.txt
4+
RUN python -m pip install --no-cache-dir --upgrade pip && \
5+
python -m pip install --no-cache-dir -e . && \
6+
python -m pip install --no-cache-dir -r tests/slo/requirements.txt
57
WORKDIR tests/slo
68
ARG SDK_SERVICE
79
ENV SDK_SERVICE=$SDK_SERVICE

0 commit comments

Comments
 (0)