fix(docker): copy src/shared into runtime image for server imports
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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) <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,7 @@ COPY package.json package-lock.json ./
|
|||||||
RUN npm ci --omit=dev
|
RUN npm ci --omit=dev
|
||||||
COPY --from=builder /app/dist ./dist
|
COPY --from=builder /app/dist ./dist
|
||||||
COPY src/server ./src/server
|
COPY src/server ./src/server
|
||||||
|
COPY src/shared ./src/shared
|
||||||
COPY tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
|
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
|
|||||||
Reference in New Issue
Block a user