Skip to content

Commit 87ed660

Browse files
committed
Slim debian bookworm image python dockerfile
1 parent 9e57c29 commit 87ed660

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

build/python-client/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
ARG PLATFORM=x86_64
2-
ARG BASE_IMAGE=python:3.9-bookworm
2+
ARG BASE_IMAGE=python:3.9-slim-bookworm
33
FROM --platform=$PLATFORM ${BASE_IMAGE}
44

5-
RUN mkdir /proto
5+
RUN mkdir -p /proto
66

7+
# Install dependencies for the python client including test extras
78
COPY client/python/pyproject.toml /code/pyproject.toml
9+
<<<<<<< Updated upstream
810

911
RUN pip install "/code[test]"
12+
=======
13+
RUN pip install --no-cache-dir "/code[test]"
14+
>>>>>>> Stashed changes
1015

11-
# Creating folders, and files for a project:
16+
# Copy the full client sources after deps are installed for better layer reuse
1217
COPY client/python /code
1318

1419
ENTRYPOINT ["/bin/bash"]

0 commit comments

Comments
 (0)