Files
SfeduSchedule/Dockerfile
Sergey Karmanov 8eb10180f0
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 54s
Вынес получение jwt другой проект
2025-11-14 03:16:58 +03:00

14 lines
525 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine3.22 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ./SfeduSchedule ./SfeduSchedule
COPY ./SfeduSchedule.Abstractions ./SfeduSchedule.Abstractions
WORKDIR /src/SfeduSchedule
RUN dotnet restore "SfeduSchedule.csproj"
RUN dotnet publish "SfeduSchedule.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS final
EXPOSE 8080
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "SfeduSchedule.dll"]