danylokhodus commited on
Commit
c413a0d
·
1 Parent(s): 62a74b8

fix: change Dockerfile port to 7860 for HuggingFace Spaces

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -17,9 +17,8 @@ RUN dotnet publish "FlowAPI.csproj" -c Release -o /app/publish /p:UseAppHost=fal
17
  # Stage 2: Runtime
18
  FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
19
  WORKDIR /app
20
- EXPOSE 8080
21
- EXPOSE 8081
22
-
23
  # Copy published .NET app
24
  COPY --from=build /app/publish .
25
 
 
17
  # Stage 2: Runtime
18
  FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
19
  WORKDIR /app
20
+ ENV ASPNETCORE_URLS=http://+:7860
21
+ EXPOSE 7860
 
22
  # Copy published .NET app
23
  COPY --from=build /app/publish .
24