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 2024-08-16 03:49:55 -04:00 committed by GitHub
parent 409e2d348e
commit be55fce9be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

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"
}

View File

@ -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: