fix: serve integrated frontend from root

This commit is contained in:
Your Name
2026-10-13 15:06:53 +08:00
parent 76421fbc2d
commit 2a3c411c9b
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ class DeploymentContractTest(unittest.TestCase):
dockerfile = (ROOT / "Dockerfile").read_text()
self.assertIn("RUN pnpm run build", dockerfile)
self.assertIn("VITE_PUBLIC_PATH=/admin/", dockerfile)
self.assertIn("ENV VITE_PUBLIC_PATH=/", dockerfile)
self.assertNotIn("VITE_PUBLIC_PATH=/admin/", dockerfile)
self.assertIn("COPY --from=web-builder /web/dist ./web/dist", dockerfile)
self.assertIn("COPY --from=web-builder /web/dist /app/web/dist", dockerfile)
self.assertIn("EXPOSE 6061", dockerfile)