Fix tgs.sh line ending issues when building Docker image from Windows

This commit is contained in:
Jordan Brown
2018-11-27 16:05:58 -05:00
parent 35d745dab3
commit 1ad6bec97b
+8 -1
View File
@@ -9,7 +9,11 @@ ENV NVM_DIR /root/.nvm
RUN . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm use $NODE_VERSION
&& nvm use $NODE_VERSION \
&& apt-get update \
&& apt-get install -y \
dos2unix \
&& rm -rf /var/lib/apt/lists/*
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
@@ -27,6 +31,9 @@ RUN dotnet restore -nowarn:MSB3202,nu1503 -p:RestoreUseSkipNonexistentTargets=fa
COPY . .
#run dos2unix on tgs.docker.sh so we can build without issue on windows
RUN dos2unix build/tgs.docker.sh
WORKDIR /src/src/Tgstation.Server.Host.Console
RUN dotnet publish -c Release -o /app