This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Commit 9391368
committed
Add support to copy extra files from the Docker image to the package
This allows native OS libraries (`*.so` files) to be copied to the
serverless archive to be available at runtime. This introduces the new
option `dockerExtraFiles`, a list of paths on the Docker image to copy.
For example, the `mysqlclient` package requires
`libmysqlclient.so.1020`. One can now add an item to the
`dockerExtraFiles` option in their `serverless.yml`:
pythonRequirements:
dockerExtraFiles:
- /usr/lib64/mysql57/libmysqlclient.so.1020
This file will be available at runtime in the Lambda function.
This removes the need to manage these files in a more manual way and
avoids the need to commit binary files one's repository.1 parent 52ae41f commit 9391368
3 files changed
+23
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
408 | 408 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
418 | 414 | | |
419 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
420 | 418 | | |
421 | 419 | | |
422 | 420 | | |
423 | 421 | | |
424 | | - | |
| 422 | + | |
| 423 | + | |
425 | 424 | | |
426 | 425 | | |
427 | 426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
252 | 262 | | |
253 | 263 | | |
254 | 264 | | |
| |||
258 | 268 | | |
259 | 269 | | |
260 | 270 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | 271 | | |
265 | 272 | | |
266 | 273 | | |
| |||
0 commit comments