1
0
mirror of https://github.com/XFox111/MuiCharts.git synced 2026-04-22 06:51:05 +03:00

Updated docker files for devcontainers and backend build

This commit is contained in:
2024-02-22 14:56:48 +00:00
parent af7d4e0ec9
commit f399b38010
4 changed files with 548 additions and 10 deletions
+17 -10
View File
@@ -1,11 +1,19 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-in-docker
{
"name": "MuiCharts",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-bookworm",
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "latest",
"enableNonRootDocker": "true",
"moby": "false"
},
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "latest"
},
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
"version": "latest",
@@ -14,18 +22,17 @@
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [5000, 5001],
// "portsAttributes": {
// "5001": {
// "protocol": "https"
// }
// }
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": {
"backend": "cd backend && dotnet restore"
// "workload": "sudo /usr/share/dotnet/dotnet workload update",
"eftool": "/usr/share/dotnet/dotnet tool install --global dotnet-ef",
"system": "sudo apt update && sudo apt upgrade -y",
"backend": "cd backend && /usr/share/dotnet/dotnet restore"
// "frontend": "cd frontend && yarn install"
}
},
"postStartCommand": "sudo /usr/share/dotnet/dotnet workload update",
// Configure tool-specific properties.
// "customizations": {},