0
0
RhSolutions-Api/Dockerfile

11 lines
313 B
Docker
Raw Normal View History

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