https://github.com/boeegh/dotnet-nvm-7
Docker image based on Microsoft .NET SDK v7 with NVM (Node Version Manager) for building .NET projects that include node packages such as webpack.
https://github.com/boeegh/dotnet-nvm-7
asp-net asp-net-core docker dotnet framework7 nodejs npm nvm
Last synced: 12 months ago
JSON representation
Docker image based on Microsoft .NET SDK v7 with NVM (Node Version Manager) for building .NET projects that include node packages such as webpack.
- Host: GitHub
- URL: https://github.com/boeegh/dotnet-nvm-7
- Owner: boeegh
- License: mit
- Created: 2023-02-11T21:35:23.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-11T22:00:37.000Z (about 3 years ago)
- Last Synced: 2025-01-04T22:20:38.251Z (about 1 year ago)
- Topics: asp-net, asp-net-core, docker, dotnet, framework7, nodejs, npm, nvm
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotnet-nvm-7
Combined Microsoft .NET SDK v7 and NVM (Node Version Manager) image for building .NET projects
that include node packages such as webpack.
Includes node versions:
* v19 (end-of-life 2023-06-01)
* v18 (lts, default, end-of-life 2025-04-30)
* v16 (lts maintenance, end-of-life 2023-09-11)
* v14 (lts maintenance, end-of-life 2023-04-30)
* v12 (end-of-life)
The image is based on [mcr.microsoft.com/dotnet/sdk:7.0](https://hub.docker.com/_/microsoft-dotnet-sdk) with [nvm](https://github.com/nvm-sh/nvm) installed.
## Usage:
```powershell
# Run npm build
docker run --rm -v ${PWD}:/app boeegh/dotnet-nvm-7 npm run build
# Run multiple commands
docker run --rm -v ${PWD}:/app boeegh/dotnet-nvm-7 run "nvm use 16 && npm i && npm run build && dotnet publish"
# Create new .NET app in MyApp folder
docker run --rm -v ${PWD}:/app boeegh/dotnet-nvm-7 dotnet new console -o MyApp -f net6.0
# Create a React app in my-react-app folder
docker run --rm -v ${PWD}:/app boeegh/dotnet-nvm-7 npx create-react-app my-react-app
```
Please note this is an experimental image that may... explode at any time. Use with caution. Or not at all.