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.
This commit is contained in:
1 parent
41d9ae2bc0
commit
3f75a20860
3 files changed
+1
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user