mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-16 18:43:43 +01:00
Add docker tgs.sh. Fix docker not copying appsettings jsons
This commit is contained in:
+2
-2
@@ -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"]
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
cp -r /config_data/* ./
|
||||
|
||||
exec dotnet Tgstation.Server.Host.Console.dll
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/sh
|
||||
|
||||
script_full_path=$(dirname "$0")
|
||||
exec dotnet "$script_full_path/Tgstation.Server.Host.Console.dll"
|
||||
|
||||
Reference in New Issue
Block a user