File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 11
11
// },
12
12
13
13
// Features to add to the dev container. More info: https://containers.dev/features.
14
- // "features": {},
14
+ "features" : {
15
+ "ghcr.io/devcontainers/features/node:1" : {
16
+ "version" : " lts"
17
+ },
18
+ "ghcr.io/devcontainers/features/docker-in-docker:2" : {}
19
+ },
15
20
16
21
// Configure tool-specific properties.
17
22
"customizations" : {
30
35
31
36
// Use 'forwardPorts' to make a list of ports inside the container available locally.
32
37
"forwardPorts" : [4000 ],
33
-
38
+
34
39
"containerEnv" : {
35
40
"LITELLM_LOG" : " DEBUG"
36
41
},
48
53
// "remoteUser": "litellm",
49
54
50
55
// Use 'postCreateCommand' to run commands after the container is created.
51
- "postCreateCommand" : " pipx install poetry && poetry install -E extra_proxy -E proxy "
56
+ "postCreateCommand" : " bash ./.devcontainer/post-create.sh "
52
57
}
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -e
3
+
4
+ echo " [post-create] Installing poetry via pip"
5
+ python -m pip install --upgrade pip
6
+ python -m pip install poetry
7
+
8
+ echo " [post-create] Installing Python dependencies (poetry)"
9
+ poetry install --with dev --extras proxy
10
+
11
+ echo " [post-create] Generating Prisma client"
12
+ poetry run prisma generate
13
+
14
+ echo " [post-create] Installing npm dependencies"
15
+ cd ui/litellm-dashboard && npm install --no-audit --no-fund
16
+
17
+ echo " [post-create] Done"
You can’t perform that action at this time.
0 commit comments