diff --git a/images/dotnet/Dockerfile b/images/dotnet/Dockerfile index 90891bf..ffa313e 100644 --- a/images/dotnet/Dockerfile +++ b/images/dotnet/Dockerfile @@ -1,10 +1,3 @@ -FROM mcr.microsoft.com/devcontainers/base:latest AS builder - -WORKDIR /builder - -ADD --chown=vscode:vscode --chmod=500 https://dot.net/v1/dotnet-install.sh . - - FROM mcr.microsoft.com/devcontainers/base:latest USER vscode @@ -13,5 +6,4 @@ ENV PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools ARG SDK_VERSION=LTS -RUN --mount=type=bind,from=builder,source=/builder/dotnet-install.sh,target=/builder/dotnet-install.sh \ - /builder/dotnet-install.sh --channel $SDK_VERSION \ No newline at end of file +RUN curl -fsSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel $SDK_VERSION diff --git a/images/nodejs/Dockerfile b/images/nodejs/Dockerfile new file mode 100644 index 0000000..5e8f8b7 --- /dev/null +++ b/images/nodejs/Dockerfile @@ -0,0 +1,8 @@ +FROM mcr.microsoft.com/devcontainers/base:latest + +USER vscode +ARG SDK_VERSION="" + +RUN curl -fsSL https://fnm.vercel.app/install | bash + +RUN if [ -n "$SDK_VERSION" ]; then fnm install "$SDK_VERSION"; fi