From a35934439582215f7a726014e954f08692ad910c Mon Sep 17 00:00:00 2001 From: Serghei Cebotari Date: Mon, 26 Aug 2024 13:50:42 +0300 Subject: Change port --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 9c9a263..dc5a24b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,10 @@ COPY . . RUN dotnet restore RUN dotnet publish --property:OutputPath=/app -FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled -EXPOSE 5000 +FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine +EXPOSE 8080 WORKDIR /app COPY --from=build /app . -ENV ASPNETCORE_ENVIRONMENT Production -ENTRYPOINT ["./RhSolutions.Api", "--urls=http://0.0.0.0:5000"] \ No newline at end of file +USER $APP_UID + +ENTRYPOINT ["./RhSolutions.Api"] \ No newline at end of file -- cgit v1.2.3