initial project, implement binary format of display
This commit is contained in:
commit
ea7f12b0c2
18 changed files with 430 additions and 0 deletions
20
TanksServer/Dockerfile
Normal file
20
TanksServer/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["TanksServer/TanksServer.csproj", "TanksServer/"]
|
||||
RUN dotnet restore "TanksServer/TanksServer.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/TanksServer"
|
||||
RUN dotnet build "TanksServer.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "TanksServer.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "TanksServer.dll"]
|
Loading…
Add table
Add a link
Reference in a new issue