fix: devcontainer part 1 (#3254)

`-r` fix and checkout within volume for performance

Signed-off-by: Dave Lee <dave@gray101.com>
This commit is contained in:
Dave authored and GitHub committed 2024-08-16 07:49:55 +00:00
1 parent 409e2d348e
commit be55fce9be
2 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -19,5 +19,6 @@
}
},
"forwardPorts": [8080, 3000],
"postStartCommand": "make prepare && cp /build/backend-assets /workdir/backend-assets"
"postCreateCommand": "git clone https://github.com/mudler/LocalAI.git .",
"postStartCommand": "make prepare && cp -r /build/backend-assets /workdir/backend-assets"
}
@@ -13,7 +13,7 @@ services:
ports:
- 8080:8080
volumes:
- ..:/workspace:cached
- localai_workspace:/workspace
command: /bin/sh -c "while sleep 1000; do :; done"
cap_add:
- SYS_PTRACE
@@ -42,4 +42,5 @@ services:
volumes:
- ./grafana:/etc/grafana/provisioning/datasources
volumes:
prom_data:
prom_data:
localai_workspace: