build: switch to hybrid build for Kotlin/JS web-app and optimize Docker setup
Replaced multi-stage Docker builds with a hybrid approach that pre-builds frontend artifacts locally and copies them into the container. Removed Kotlin Multiplatform configurations from the root project to resolve NodeJsRootPlugin conflicts. Adjusted `.dockerignore` to allow pre-built artifacts and increased Gradle/Kotlin daemon memory for faster builds. Updated Caddyfile for runtime stability and added documentation for new build processes.
This commit is contained in:
+8
-3
@@ -187,7 +187,6 @@ secrets/
|
||||
**/*.sqlite3
|
||||
**/postgres-data/
|
||||
**/redis-data/
|
||||
# REMOVED: **/data/ - This was excluding source packages named 'data' (e.g. at.mocode...data)
|
||||
|
||||
# ===================================================================
|
||||
# Application specific exclusions
|
||||
@@ -216,6 +215,12 @@ NOTES*.md
|
||||
!docs/
|
||||
|
||||
# ===================================================================
|
||||
# Final note: Each Dockerfile should copy only what it needs
|
||||
# This .dockerignore provides a baseline for all builds
|
||||
# HYBRID BUILD EXCEPTIONS (Must be at the end!)
|
||||
# ===================================================================
|
||||
# We need to explicitly un-ignore the path to the pre-built artifacts.
|
||||
# Since **/build/ and **/dist/ are ignored above, we must un-ignore
|
||||
# the specific chain of directories.
|
||||
!frontend/shells/meldestelle-portal/build/
|
||||
!frontend/shells/meldestelle-portal/build/dist/
|
||||
!frontend/shells/meldestelle-portal/build/dist/js/
|
||||
!frontend/shells/meldestelle-portal/build/dist/js/productionExecutable/
|
||||
|
||||
Reference in New Issue
Block a user