еще разок попытаем удачу

This commit is contained in:
mfnefd 2024-11-03 20:51:32 +04:00
parent 74e61987dc
commit 14338ff5ac
2 changed files with 21 additions and 18 deletions

View File

@ -8,7 +8,8 @@ RUN dotnet restore
# Build and publish a release
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS runtime
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS app
ENV ASPNETCORE_URLS=http://*:5089
WORKDIR /App
COPY --from=build /App/out .
ENTRYPOINT ["dotnet", "ApiRestaurant.dll"]

View File

@ -1,4 +1,5 @@
server {
http {
server {
listen 80;
listen [::]:80;
server_name localhost;
@ -18,4 +19,5 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Prefix /admin;
}
}
}