diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2024-08-26 13:50:42 +0300 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2024-08-26 13:50:42 +0300 |
commit | a35934439582215f7a726014e954f08692ad910c (patch) | |
tree | d5b5e8aa35f9ed86d927ec65f303ccd21823a54a /Dockerfile | |
parent | 0276a77b32097c7ac3da764515c1ecf858daa342 (diff) |
Change port
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |