Spaces:
Running
Running
Commit ·
c413a0d
1
Parent(s): 62a74b8
fix: change Dockerfile port to 7860 for HuggingFace Spaces
Browse files- 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 |
-
|
| 21 |
-
EXPOSE
|
| 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 |
|