This commit is contained in:
EonaCat authored and Jeroen Saey committed 2026-11-04 07:53:40 +01:00
1 parent 2c5b69bf2c
commit 22dee59f47
132 files changed
+19653 -7192

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
# syntax=docker/dockerfile:1.4
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
# Copy the projects
COPY EonaCat.Connections/EonaCat.Connections.csproj EonaCat.Connections/
COPY EonaCat.Connections.Server/EonaCat.Connections.Server.csproj EonaCat.Connections.Server/
RUN dotnet restore EonaCat.Connections.Server/EonaCat.Connections.Server.csproj
# Copy remaining sources
COPY . .
RUN dotnet publish EonaCat.Connections.Server/EonaCat.Connections.Server.csproj -c Release -o /app/publish --no-restore
# Runtime image
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS final
WORKDIR /app
COPY --from=build /app/publish .
EXPOSE 8080
# Set environment variable to signal Docker environment
ENV DOTNET_RUNNING_IN_CONTAINER=true
ENTRYPOINT ["dotnet", "EonaCat.Connections.Server.dll"]