Add docker tgs.sh. Fix docker not copying appsettings jsons

This commit is contained in:
Cyberboss
2018-07-24 12:00:27 -04:00
parent d1b0a69340
commit 9d8a6bbfbf
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -33,7 +33,6 @@ RUN dotnet test -c Release
WORKDIR /src/tests/Tgstation.Server.Host.Console.Tests
RUN dotnet test -c Release
FROM build AS publish
RUN dotnet publish -c Release -o /app
FROM microsoft/dotnet:2.0-runtime
@@ -41,7 +40,8 @@ EXPOSE 80
WORKDIR /app
COPY --from=publish /app .
COPY --from=build /app .
COPY --from=build /src/build/tgs.docker.sh tgs.sh
RUN mkdir /config_data && mv appsettings.Docker.json /config_data/appsettings.Production.json
VOLUME ["/config_data"]
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
cp -r /config_data/* ./
exec dotnet Tgstation.Server.Host.Console.dll
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh
script_full_path=$(dirname "$0")
exec dotnet "$script_full_path/Tgstation.Server.Host.Console.dll"