From 3f75a208608a296eb72b251c7b6fa275ff5d3086 Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Sun, 19 Jul 2026 19:14:47 +0000 Subject: [PATCH] fix(infra): copy web wwwroot to /app/wwwroot in Dockerfile Static files are served from /app/wwwroot but the web publish output is at /app/web/. Copying wwwroot to the expected location so StaticFileMiddleware can find CSS, JS, and other static assets. --- docker/Dockerfile.central | 1 + docker/docker-compose.prod.yml | 1 - docker/docker-compose.yml | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/Dockerfile.central b/docker/Dockerfile.central index 0defbc8..1923b22 100644 --- a/docker/Dockerfile.central +++ b/docker/Dockerfile.central @@ -34,6 +34,7 @@ ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \ COPY --from=build /app/api ./api COPY --from=build /app/web ./web +COPY --from=build /app/web/wwwroot ./wwwroot COPY --from=build /app/workers ./workers # Expose both API and Web ports diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index f3b0370..35d61b6 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -113,7 +113,6 @@ services: heimdall-web: image: eltruncho/heimdall-central:latest entrypoint: ["dotnet", "web/Heimdall.Web.dll"] - working_dir: /app/web environment: ASPNETCORE_URLS: http://+:8080 ASPNETCORE_ENVIRONMENT: ${ASPNETCORE_ENVIRONMENT:-Production} diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 3b10245..1e7df93 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -116,7 +116,6 @@ services: context: .. dockerfile: docker/Dockerfile.central entrypoint: ["dotnet", "web/Heimdall.Web.dll"] - working_dir: /app/web environment: ASPNETCORE_URLS: http://+:8080 ASPNETCORE_ENVIRONMENT: ${ASPNETCORE_ENVIRONMENT:-Production}