Skip to content

Commit 3416319

Browse files
committed
Add an example of copying from the container
1 parent da33e25 commit 3416319

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

templates/quick_start.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,13 @@ To include it in the dockerfile instead:
2828
```dockerfile
2929
FROM ghcr.io/{{ organization }}/{{ short_repository }}:py{{ python_versions|last }}-slim-LATEST
3030
```
31+
32+
### Copy Just the Packages
33+
34+
It's also possible to copy just the Python packages themselves. This is particularly useful when you want to use the precompiled libraries from multiple containers.
35+
36+
```dockerfile
37+
FROM python:{{ python_versions|last }}
38+
39+
COPY --from=ghcr.io/{{ organization }}/{{ short_repository }}:py{{ python_versions|last }}-slim-LATEST /usr/local/lib/python{{ python_versions|last }}/site-packages/* /usr/local/lib/python{{ python_versions|last }}/site-packages/
40+
```

0 commit comments

Comments
 (0)