|
1 | 1 | { |
2 | 2 | "name": "openiddict-ui", |
3 | | - "build": { |
4 | | - "dockerfile": "Dockerfile", |
5 | | - "args": { |
6 | | - // Update 'VARIANT' to pick a .NET Core version: 2.1, 3.1 |
7 | | - "VARIANT": "8.0", |
8 | | - // Options |
9 | | - "INSTALL_NODE": "true", |
10 | | - "NODE_VERSION": "lts/*", |
11 | | - "INSTALL_AZURE_CLI": "false" |
| 3 | + "image": "mcr.microsoft.com/devcontainers/dotnet:1-9.0-bookworm", |
| 4 | + "features": { |
| 5 | + "ghcr.io/devcontainers/features/node:1": { |
| 6 | + "installNodeVersion": "lts/*" |
| 7 | + } |
| 8 | + }, |
| 9 | + "customizations": { |
| 10 | + "vscode": { |
| 11 | + "extensions": [ |
| 12 | + "eamodio.gitlens", |
| 13 | + "editorconfig.editorconfig", |
| 14 | + "github.vscode-pull-request-github", |
| 15 | + "mikestead.dotenv", |
| 16 | + "minhthai.vscode-todo-parser", |
| 17 | + "ms-dotnettools.csharp", |
| 18 | + "ms-dotnettools.csdevkit" |
| 19 | + ] |
12 | 20 | } |
13 | 21 | }, |
14 | | - // Set *default* container specific settings.json values on container create. |
15 | | - "settings": {}, |
16 | | - // Add the IDs of extensions you want installed when the container is created. |
17 | | - "extensions": [ |
18 | | - "formulahendry.dotnet-test-explorer", |
19 | | - "minhthai.vscode-todo-parser", |
20 | | - "ms-dotnettools.csharp", |
21 | | - "ryanluker.vscode-coverage-gutters" |
22 | | - ], |
23 | 22 | // Use 'forwardPorts' to make a list of ports inside the container available locally. |
24 | 23 | "forwardPorts": [ |
25 | 24 | 4200, |
26 | 25 | 5000, |
27 | 26 | 5001, |
28 | 27 | 5002 |
29 | 28 | ], |
30 | | - // [Optional] To reuse of your local HTTPS dev cert: |
31 | | - // |
32 | | - // 1. Export it locally using this command: |
33 | | - // * Windows PowerShell: |
34 | | - // dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere" |
35 | | - // * macOS/Linux terminal: |
36 | | - // dotnet dev-certs https --trust; dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere" |
37 | | - // |
38 | | - // 2. Uncomment these 'remoteEnv' lines: |
39 | | - // "remoteEnv": { |
40 | | - // "ASPNETCORE_Kestrel__Certificates__Default__Password": "SecurePwdGoesHere", |
41 | | - // "ASPNETCORE_Kestrel__Certificates__Default__Path": "/home/vscode/.aspnet/https/aspnetapp.pfx", |
42 | | - // }, |
43 | | - // |
44 | | - // 3. Do one of the following depending on your scenario: |
45 | | - // * When using GitHub Codespaces and/or Remote - Containers: |
46 | | - // 1. Start the container |
47 | | - // 2. Drag ~/.aspnet/https/aspnetapp.pfx into the root of the file explorer |
48 | | - // 3. Open a terminal in VS Code and run "mkdir -p /home/vscode/.aspnet/https && mv aspnetapp.pfx /home/vscode/.aspnet/https" |
49 | | - // |
50 | | - // * If only using Remote - Containers with a local container, uncomment this line instead: |
51 | | - // "mounts": [ "source=${env:HOME}${env:USERPROFILE}/.aspnet/https,target=/home/vscode/.aspnet/https,type=bind" ], |
52 | | - // Use 'postCreateCommand' to run commands after the container is created. |
53 | | - // "postCreateCommand": "dotnet restore", |
54 | | - // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
55 | | - "remoteUser": "vscode" |
| 29 | + "postCreateCommand": "dotnet dev-certs https --trust" |
56 | 30 | } |
0 commit comments