0
0
RhSolutions-Api/Dockerfile

14 lines
321 B
Docker
Raw Permalink Normal View History

2022-12-14 09:53:10 +03:00
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /app
COPY . ./
RUN dotnet restore
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:6.0
EXPOSE 5000
2023-10-30 21:49:58 +03:00
EXPOSE 43000
2022-12-14 09:53:10 +03:00
WORKDIR /app
COPY --from=build /app/out .
ENV ASPNETCORE_ENVIRONMENT Production
2023-10-30 21:49:58 +03:00
ENTRYPOINT [ "dotnet", "RhSolutions.Api.dll" ]