mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-20 20:43:47 +01:00
Fix tgs.sh line ending issues when building Docker image from Windows
This commit is contained in:
+8
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user