danylokhodus commited on
Commit
a5a9f69
·
1 Parent(s): c8301b4

fix: change port from 7860 to 8080 - HF Space proxy expects port 8080

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -17,9 +17,10 @@ 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
- ENV ASPNETCORE_URLS=http://+:7860
 
21
  ENV ASPNETCORE_ENVIRONMENT=Production
22
- EXPOSE 7860
23
 
24
  # Create persistent data directory for SQLite
25
  RUN mkdir -p /data/data
 
17
  # Stage 2: Runtime
18
  FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
19
  WORKDIR /app
20
+ # HF Space proxy routes to port 8080 (sets HTTP_PORTS=8080 env var)
21
+ ENV ASPNETCORE_URLS=http://+:8080
22
  ENV ASPNETCORE_ENVIRONMENT=Production
23
+ EXPOSE 8080
24
 
25
  # Create persistent data directory for SQLite
26
  RUN mkdir -p /data/data