Docker and Docker-Compose updates (#13)

* feat: updated docker-compose files to pull an image from docker hub
This commit is contained in:
Michael Green
2023-07-11 22:31:08 +10:00
committed by GitHub
parent 7f4b8a808f
commit f1842d21ff
4 changed files with 75 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ COPY . ./
# Restore as distinct layers
RUN dotnet restore "gaseous-server/gaseous-server.csproj"
# Build and publish a release
RUN dotnet publish "gaseous-server/gaseous-server.csproj" -c Release -o out
RUN dotnet publish "gaseous-server/gaseous-server.csproj" --use-current-runtime --self-contained false -c Release -o out
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:7.0