53 строки
2.0 KiB
JSON
53 строки
2.0 KiB
JSON
{
|
|
"name": "Uno Platform",
|
|
"build": {
|
|
"dockerfile": "Dockerfile",
|
|
"args": {
|
|
// Update 'VARIANT' to pick a .NET Core version. Rebuild the container if
|
|
// it already exists to update. Example variants: 2.1-bionic, 3.1-bionic
|
|
"VARIANT": "3.1-bionic",
|
|
// Options
|
|
"INSTALL_NODE": "true",
|
|
"NODE_VERSION": "lts/*",
|
|
"INSTALL_AZURE_CLI": "false",
|
|
"UPGRADE_PACKAGES": "false"
|
|
}
|
|
},
|
|
|
|
// Set *default* container specific settings.json values on container create.
|
|
"settings": {
|
|
"terminal.integrated.shell.linux": "/bin/bash"
|
|
},
|
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
"extensions": [
|
|
"ms-dotnettools.csharp"
|
|
],
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
"forwardPorts": [ 8000, 53487 ],
|
|
|
|
// [Optional] To reuse of your local HTTPS dev cert, first export it locally using this command:
|
|
// * Windows PowerShell:
|
|
// dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
|
|
// * macOS/Linux terminal:
|
|
// dotnet dev-certs https --trust; dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
|
|
//
|
|
// Next, after running the command above, uncomment lines in the 'mounts' and 'remoteEnv' lines below,
|
|
// and open / rebuild the container so the settings take effect.
|
|
//
|
|
"mounts": [
|
|
// "source=${env:HOME}${env:USERPROFILE}/.aspnet/https,target=/home/vscode/.aspnet/https,type=bind"
|
|
],
|
|
"remoteEnv": {
|
|
// "ASPNETCORE_Kestrel__Certificates__Default__Password": "SecurePwdGoesHere",
|
|
// "ASPNETCORE_Kestrel__Certificates__Default__Path": "/home/vscode/.aspnet/https/aspnetapp.pfx",
|
|
}
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
// "postCreateCommand": "dotnet restore",
|
|
|
|
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
|
|
// "remoteUser": "vscode"
|
|
}
|