Skip to content

Commit ba37e7b

Browse files
committed
add vscode dev container
1 parent 6ac066c commit ba37e7b

File tree

3 files changed

+5777
-3773
lines changed

3 files changed

+5777
-3773
lines changed

.devcontainer/devcontainer.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
3+
{
4+
"name": "AccountGo (.NET)",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/dotnet:0-7.0-bullseye",
7+
"features": {
8+
"ghcr.io/devcontainers/features/azure-cli:1": {},
9+
"ghcr.io/devcontainers/features/git:1": {},
10+
"ghcr.io/dhoeric/features/google-cloud-cli:1": {},
11+
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {},
12+
"ghcr.io/devcontainers/features/docker-in-docker:1": {
13+
"version": "latest",
14+
"moby": true
15+
},
16+
"ghcr.io/devcontainers/features/node:1": {}
17+
}
18+
19+
// Features to add to the dev container. More info: https://containers.dev/features.
20+
// "features": {},
21+
22+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
23+
// "forwardPorts": [5000, 5001],
24+
// "portsAttributes": {
25+
// "5001": {
26+
// "protocol": "https"
27+
// }
28+
// }
29+
30+
// Use 'postCreateCommand' to run commands after the container is created.
31+
// "postCreateCommand": "dotnet restore",
32+
33+
// Configure tool-specific properties.
34+
// "customizations": {},
35+
36+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
37+
// "remoteUser": "root"
38+
}

src/AccountGoWeb/AccountGoWeb.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</ItemGroup>
3434

3535
<Target Name="NpmCommands" AfterTargets="Build">
36-
<Exec Command="npm install" />
36+
<Exec Command="npm install --legacy-peer-deps" />
3737
<Exec Command="npm run gulp" />
3838
<!-- Important: NODE_ENV and APIURLSPA are used by webpack to properly set the api url. Here, it access the environment variable which is set in dockerfile. -->
3939
<Message Text="NODE_ENV: =&gt; $(NODE_ENV), APIURLSPA: =&gt; $(APIURLSPA)" Importance="high" />

0 commit comments

Comments
 (0)