Update Dockerfile

This commit is contained in:
alexkar598
2021-10-26 22:20:34 -04:00
committed by GitHub
parent 31df05e266
commit 9ce9bd76f7
+2 -1
View File
@@ -4,7 +4,7 @@ FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
# replace shell with bash so we can source files
RUN curl --silent -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | sh
ENV NODE_VERSION 10.13.0
ENV NODE_VERSION 14.18.1
ENV NVM_DIR /root/.nvm
RUN . $NVM_DIR/nvm.sh \
@@ -14,6 +14,7 @@ RUN . $NVM_DIR/nvm.sh \
&& apt-get install -y \
dos2unix \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g npm
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH