Skip to content

Commit 6bf34bc

Browse files
committed
Fix Dockerfile port configuration for Fly.io compatibility
- Changed port from 10000 (Render) to 8080 (Fly.io) - Updated ASPNETCORE_URLS to match fly.toml configuration - Updated comment to reflect Fly.io optimization - This resolves the deployment failure in Fly.io v6
1 parent d934b2d commit 6bf34bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Dockerfile simplificado para Render
1+
# Dockerfile optimizado para Fly.io
22
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
33
WORKDIR /app
4-
EXPOSE 10000
4+
EXPOSE 8080
55

66
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
77
WORKDIR /src
@@ -22,7 +22,7 @@ FROM base AS final
2222
WORKDIR /app
2323
COPY --from=publish /app/publish .
2424

25-
ENV ASPNETCORE_URLS=http://0.0.0.0:10000
25+
ENV ASPNETCORE_URLS=http://0.0.0.0:8080
2626
ENV ASPNETCORE_ENVIRONMENT=Production
2727

2828
ENTRYPOINT ["dotnet", "AutoDocOps.Api.dll"]

0 commit comments

Comments
 (0)