Skip to content

Commit

Permalink
Merge pull request #493 from ydb-platform/reduce_docker_size
Browse files Browse the repository at this point in the history
reduce slo docker image size
  • Loading branch information
vgvoleg committed Sep 27, 2024
2 parents 4877cc8 + f2b8a55 commit 3630931
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*
!tests/slo
!ydb/
!README.md
!requirements.txt
!pyproject.toml
!setup.py
6 changes: 4 additions & 2 deletions tests/slo/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3630931

Please sign in to comment.