From 6b14d9cca19eb201482e44bd732f380cd649b5e7 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Sun, 28 Dec 2025 22:43:37 -0800 Subject: [PATCH] Fix Docker build by adding missing files and tsx dependency - Add scripts/ directory to build stage for sync-assets.mjs - Add index.html to build stage for Vite entry point - Move tsx to production dependencies for server runtime - Copy src/ and tsconfig.json to production stage for tsx These changes enable the Docker build to complete successfully and allow the server to run TypeScript files directly in production. --- Dockerfile | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2644cd3f0..7ac9a2738 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,8 @@ COPY vite.config.ts ./ COPY tailwind.config.js ./ COPY postcss.config.js ./ COPY eslint.config.js ./ +COPY index.html ./ +COPY scripts ./scripts COPY resources ./resources COPY proprietary ./proprietary COPY src ./src diff --git a/package.json b/package.json index 39b30ddca..94efcb3ac 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,6 @@ "sinon-chai": "^4.0.0", "tailwindcss": "^3.4.17", "tsconfig-paths": "^4.2.0", - "tsx": "^4.17.0", "typescript": "^5.7.2", "typescript-eslint": "^8.26.0", "vite": "^7.3.0", @@ -123,6 +122,7 @@ "obscenity": "^0.4.3", "seedrandom": "^3.0.5", "ts-node": "^10.9.2", + "tsx": "^4.17.0", "uuid": "^11.1.0", "winston": "^3.17.0", "ws": "^8.18.0",