Skip to content

Commit 6960cd9

Browse files
authored
Update README.md
1 parent 015279e commit 6960cd9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,16 @@ custom:
164164
This will remove all folders within the installed requirements that match
165165
the names in `slimPatterns`
166166

167+
#### Option not to strip binaries
168+
169+
In some cases, stripping binaries leads to problems like "ELF load command address/offset not properly aligned", even when done in the Docker environment. You can still slim down the package without `*.so` files with
170+
```yaml
171+
custom:
172+
pythonRequirements:
173+
slim: true
174+
strip: false
175+
```
176+
167177
### Lamba Layer
168178
Another method for dealing with large dependencies is to put them into a
169179
[Lambda Layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).

0 commit comments

Comments
 (0)