-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: adding lines to docker file (#1633)
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# How to customize Dockerfile | ||
|
||
Users can add an array of additional lines to add to the Dockerfile following the import from the parent LangGraph image. In order to do this, you simply need to modify your `langgraph.json` file by passing in the commands you want run to the `dockerfile_lines` key. For example, if we wanted to use `Pillow` in our graph you would need to add the following dependencies: | ||
|
||
``` | ||
{ | ||
"dependencies": ["."], | ||
"graphs": { | ||
"openai_agent": "./openai_agent.py:agent", | ||
}, | ||
"env": "./.env", | ||
"dockerfile_lines": [ | ||
"RUN apt-get update && apt-get install -y libjpeg-dev zlib1g-dev libpng-dev", | ||
"RUN pip install Pillow" | ||
] | ||
} | ||
``` | ||
|
||
This would install the system packages required to use Pillow if we were working with `jpeq` or `png` image formats. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters