mau
This commit is contained in:
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
.idea/
|
||||||
|
.git/
|
||||||
|
.gitignore
|
||||||
|
README.md
|
||||||
15
Deploymaunt/Dockerfile
Normal file
15
Deploymaunt/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS base
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||||
|
COPY ../ /src/
|
||||||
|
WORKDIR /src
|
||||||
|
RUN dotnet build "MauMau-Server.csproj" -c Release -o out
|
||||||
|
|
||||||
|
FROM build AS publish
|
||||||
|
RUN dotnet publish "MauMau-Server.csproj" -c Release -o /app/publish
|
||||||
|
|
||||||
|
FROM base AS final
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=publish /app/publish .
|
||||||
|
ENTRYPOINT ["dotnet", "MauMau-Server.dll"]
|
||||||
15
Deploymaunt/docker-compose.yml
Normal file
15
Deploymaunt/docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
version: '3.9'
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
target: final
|
||||||
|
container_name: 'MauMau-server'
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- maumau
|
||||||
|
networks:
|
||||||
|
maumau:
|
||||||
|
# hier later extern naar client
|
||||||
|
driver: bridge
|
||||||
@@ -5,6 +5,8 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<RootNamespace>MauMau_Server</RootNamespace>
|
<RootNamespace>MauMau_Server</RootNamespace>
|
||||||
|
<AssemblyName>MauMau_Server</AssemblyName>
|
||||||
|
<OutputPath>out\</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -12,5 +14,4 @@
|
|||||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.3" />
|
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.3" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Reference in New Issue
Block a user