We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e57c29 commit 87ed660Copy full SHA for 87ed660
build/python-client/Dockerfile
@@ -1,14 +1,19 @@
1
ARG PLATFORM=x86_64
2
-ARG BASE_IMAGE=python:3.9-bookworm
+ARG BASE_IMAGE=python:3.9-slim-bookworm
3
FROM --platform=$PLATFORM ${BASE_IMAGE}
4
5
-RUN mkdir /proto
+RUN mkdir -p /proto
6
7
+# Install dependencies for the python client including test extras
8
COPY client/python/pyproject.toml /code/pyproject.toml
9
+<<<<<<< Updated upstream
10
11
RUN pip install "/code[test]"
12
+=======
13
+RUN pip install --no-cache-dir "/code[test]"
14
+>>>>>>> Stashed changes
15
-# Creating folders, and files for a project:
16
+# Copy the full client sources after deps are installed for better layer reuse
17
COPY client/python /code
18
19
ENTRYPOINT ["/bin/bash"]
0 commit comments