# See here for image contents: https://github.com/devcontainers/images/blob/main/src/dotnet/.devcontainer/Dockerfile
# [Choice] .NET version: 6.0-bullseye, 3.1-bullseye, 6.0-focal, 3.1-focal
ARG VARIANT="6.0-bullseye-slim"
FROM mcr.microsoft.com/devcontainers/dotnet:0-${VARIANT}
# [Choice] Node.js version: none, lts/*, 18, 16, 14
ARG NODE_VERSION="18"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends docker-compose-plugin docker-ce-cli
# [Optional] Uncomment this line to install global node packages.
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g @angular/cli @angular/core" 2>&1
RUN dotnet tool install -g dotnet-ef
ENV PATH $PATH:/root/.dotnet/tools
{
"name": ".NET (C#)",
"build": {
"dockerfile": "Dockerfile.devcontainer"
},
// Set *default* container specific settings.json values on container create.
"settings": {},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-dotnettools.csharp",
"eamodio.gitlens",
"fernandoescolar.vscode-solution-explorer",
"ms-azuretools.vscode-docker",
"Fudge.auto-using",
"kreativ-software.csharpextensions",
"adrianwilczynski.add-reference",
"pranaygp.vscode-css-peek",
"Dunn.redis",
"DavidAnson.vscode-markdownlint",
"ms-mssql.mssql",
// For Angular
"devondcarew.bazel-code",
"gkalpak.aio-docs-utils",
"ms-vscode.vscode-typescript-tslint-plugin",
"xaver.clang-format",
"Angular.ng-template",
"christian-kohler.npm-intellisense"
],
"remoteUser": "root", // root user is required when use vscode docker extension to see other running container
"features": {
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:1": {},
"ghcr.io/devcontainers/features/dotnet:1": {},
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {},
"ghcr.io/devcontainers-contrib/features/kubectx-kubens:1": {}
}
}
# See here for image contents: https://github.com/devcontainers/images/blob/main/src/dotnet/.devcontainer/Dockerfile
# [Choice] .NET version: 6.0-bullseye, 3.1-bullseye, 6.0-focal, 3.1-focal
ARG VARIANT="6.0-bullseye-slim"
FROM mcr.microsoft.com/devcontainers/dotnet:0-${VARIANT}
# [Choice] Node.js version: none, lts/*, 18, 16, 14
ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update; \
# export DEBIAN_FRONTEND=noninteractive; \
# apt-get -y install --no-install-recommends docker-compose-plugin docker-ce-cli;
# [Optional] Uncomment this line to install global node packages.
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g @angular/cli @angular/core" 2>&1
RUN dotnet tool install -g dotnet-ef
ENV PATH $PATH:/root/.dotnet/tools
Content type
Image
Digest
sha256:426e6a5eb…
Size
746.6 MB
Last updated
almost 3 years ago
docker pull lumosdang/devcontainers:java-0-17-buster