8f3a28effb
* pythonExtension and python runtime improvements * Adding streaming support * Use writeFileSync * Restructure extension docs and add python extension docs * Fix broken link * Update docs/config/extensions/overview.mdx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update docs/config/extensions/aptGet.mdx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update docs/config/extensions/custom.mdx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Add environment variable support --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
35 lines
853 B
Plaintext
35 lines
853 B
Plaintext
---
|
|
title: "apt-get"
|
|
sidebarTitle: "aptGet"
|
|
description: "Use the aptGet build extension to install system packages into the deployed image"
|
|
---
|
|
|
|
You can install system packages into the deployed image using the `aptGet` extension:
|
|
|
|
```ts
|
|
import { defineConfig } from "@trigger.dev/sdk/v3";
|
|
import { aptGet } from "@trigger.dev/build/extensions/core";
|
|
|
|
export default defineConfig({
|
|
project: "<project ref>",
|
|
// Your other config settings...
|
|
build: {
|
|
extensions: [aptGet({ packages: ["ffmpeg"] })],
|
|
},
|
|
});
|
|
```
|
|
|
|
If you want to install a specific version of a package, you can specify the version like this:
|
|
|
|
```ts
|
|
import { defineConfig } from "@trigger.dev/sdk/v3";
|
|
|
|
export default defineConfig({
|
|
project: "<project ref>",
|
|
// Your other config settings...
|
|
build: {
|
|
extensions: [aptGet({ packages: ["ffmpeg=6.0-4"] })],
|
|
},
|
|
});
|
|
```
|