Files
2026-02-12 10:27:23 +02:00

23 lines
640 B
Docker

# syntax=docker/dockerfile:1.7
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY . .
RUN [ -f /src/nuget.config ] || cp /src/NuGet.config /src/nuget.config
RUN dotnet restore src/SmRemote/StellaOps.SmRemote.Service/StellaOps.SmRemote.Service.csproj
RUN dotnet publish src/SmRemote/StellaOps.SmRemote.Service/StellaOps.SmRemote.Service.csproj \
-c Release \
-o /app/publish \
/p:UseAppHost=false
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
WORKDIR /app
COPY --from=build /app/publish/ ./
ENV ASPNETCORE_URLS=http://0.0.0.0:56080
EXPOSE 56080
ENTRYPOINT ["dotnet", "StellaOps.SmRemote.Service.dll"]