Add npm to docker build

This commit is contained in:
Jordan Brown
2018-11-26 17:09:23 -05:00
parent 75f105ee31
commit b058174c62
2 changed files with 14 additions and 0 deletions
+3
View File
@@ -7,3 +7,6 @@ packages
*/bin
*/obj
tests
tools
src/Tgstation.Server.Host/ClientApp/node_modules
src/Tgstation.Server.Host/wwwroot
+11
View File
@@ -1,5 +1,16 @@
FROM microsoft/dotnet:2.1-sdk AS build
ARG NODE_VERSION=11.1.0
# install node and npm
# replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN curl --silent -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash
RUN source /root/.nvm/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm use $NODE_VERSION
WORKDIR /src
COPY tgstation-server.sln ./