2024-01-12 15:29:59 +03:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
2022-12-14 09:53:10 +03:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . ./
|
|
|
|
RUN dotnet restore
|
|
|
|
RUN dotnet publish -c Release -o out
|
|
|
|
|
2024-01-12 15:29:59 +03:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
2022-12-14 09:53:10 +03:00
|
|
|
EXPOSE 5000
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /app/out .
|
|
|
|
ENV ASPNETCORE_ENVIRONMENT Production
|
|
|
|
ENTRYPOINT [ "dotnet", "RhSolutions.Api.dll", "--urls=http://0.0.0.0:5000" ]
|