Skip to content

Commit 64f7bdb

Browse files
committed
Add npm to the DevContainer and install node packages to watch docs when authoring
1 parent b9f4e93 commit 64f7bdb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM mcr.microsoft.com/devcontainers/dotnet:8.0
2+
3+
RUN apt-get update && \
4+
apt-get -y install npm

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dotnet8.0",
3-
"image": "mcr.microsoft.com/devcontainers/dotnet:8.0",
4-
"postCreateCommand": "dotnet tool restore",
3+
"dockerFile": "Dockerfile",
4+
"postCreateCommand": "dotnet tool restore && cd docs && npm install --save-dev",
55
"customizations": {
66
"vscode": {
77
"extensions": [

0 commit comments

Comments
 (0)