From 0c258dd1a2845d900c7d8ee648b50999983abe02 Mon Sep 17 00:00:00 2001 From: kkfluous Date: Fri, 17 Apr 2026 15:44:49 +0800 Subject: [PATCH] fix(docker): copy src/shared into runtime image for server imports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/server/auth/types.ts imports runtime values (role constants, canAccessScheduling helper) from src/shared/auth/roles.ts — without the shared folder in the final stage the server crashes with ERR_MODULE_NOT_FOUND. Existing shared/scheduling imports survived only because they were type-only and elided at runtime. Co-Authored-By: Claude Opus 4.7 (1M context) --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 2d605ec..34cd117 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ COPY package.json package-lock.json ./ RUN npm ci --omit=dev COPY --from=builder /app/dist ./dist COPY src/server ./src/server +COPY src/shared ./src/shared COPY tsconfig.json ./ EXPOSE 3001