0
0
RhSolutions-Api/Dockerfile

12 lines
351 B
Docker
Raw Permalink 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 . .
2024-02-09 16:48:11 +03:00
RUN dotnet restore
2024-01-14 23:12:20 +03:00
RUN dotnet publish --property:OutputPath=/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"]