Skip to content

Commit be55fce

Browse files
authored
fix: devcontainer part 1 (#3254)
`-r` fix and checkout within volume for performance Signed-off-by: Dave Lee <[email protected]>
1 parent 409e2d3 commit be55fce

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@
1919
}
2020
},
2121
"forwardPorts": [8080, 3000],
22-
"postStartCommand": "make prepare && cp /build/backend-assets /workdir/backend-assets"
22+
"postCreateCommand": "git clone https://github.com/mudler/LocalAI.git .",
23+
"postStartCommand": "make prepare && cp -r /build/backend-assets /workdir/backend-assets"
2324
}

.devcontainer/docker-compose-devcontainer.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
ports:
1414
- 8080:8080
1515
volumes:
16-
- ..:/workspace:cached
16+
- localai_workspace:/workspace
1717
command: /bin/sh -c "while sleep 1000; do :; done"
1818
cap_add:
1919
- SYS_PTRACE
@@ -42,4 +42,5 @@ services:
4242
volumes:
4343
- ./grafana:/etc/grafana/provisioning/datasources
4444
volumes:
45-
prom_data:
45+
prom_data:
46+
localai_workspace:

0 commit comments

Comments
 (0)