Integrer l'authentification Keycloak dans l'application
This commit is contained in:
17
Dockerfile.auth
Normal file
17
Dockerfile.auth
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
COPY ChessCubing.Server/ChessCubing.Server.csproj ChessCubing.Server/
|
||||
RUN dotnet restore ChessCubing.Server/ChessCubing.Server.csproj
|
||||
|
||||
COPY ChessCubing.Server/ ChessCubing.Server/
|
||||
RUN dotnet publish ChessCubing.Server/ChessCubing.Server.csproj -c Release -o /app/publish
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0
|
||||
WORKDIR /app
|
||||
|
||||
ENV ASPNETCORE_URLS=http://+:8080
|
||||
|
||||
COPY --from=build /app/publish ./
|
||||
|
||||
ENTRYPOINT ["dotnet", "ChessCubing.Server.dll"]
|
||||
Reference in New Issue
Block a user