Skip to content

Commit 8216611

Browse files
committed
fix(docker): update Dockerfile to copy full source for extensions and adjust build process
Modified the Dockerfile to copy the full source of the `extension-hypermultimedia` and `extension-inline-code` packages instead of just their package.json files. Updated the build process to install dependencies and build the extensions before the production install, ensuring a cleaner setup.
1 parent 423d82d commit 8216611

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

packages/hocuspocus.server/docker/Dockerfile.bun

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@ COPY packages/hocuspocus.server ./packages/hocuspocus.server
2121
COPY packages/admin-dashboard/package.json ./packages/admin-dashboard/
2222
COPY packages/eslint-config/package.json ./packages/eslint-config/
2323
COPY packages/extension-hyperlink/package.json ./packages/extension-hyperlink/
24-
COPY packages/extension-hypermultimedia/package.json ./packages/extension-hypermultimedia/
24+
# Full source: migration-extensions imports these; package "main" points at dist/ (not in repo).
25+
COPY packages/extension-hypermultimedia ./packages/extension-hypermultimedia/
2526
COPY packages/extension-indent/package.json ./packages/extension-indent/
26-
COPY packages/extension-inline-code/package.json ./packages/extension-inline-code/
27+
COPY packages/extension-inline-code ./packages/extension-inline-code/
2728
COPY packages/extension-placeholder/package.json ./packages/extension-placeholder/
2829
COPY packages/supabase/package.json ./packages/supabase/
2930
COPY packages/webapp/package.json ./packages/webapp/
3031

32+
# Dev install + build dist/, then prune — production-only install cannot run tsup.
33+
RUN bun install --frozen-lockfile --ignore-scripts
34+
RUN bun run --filter @docs.plus/extension-hypermultimedia build \
35+
&& bun run --filter @docs.plus/extension-inline-code build
3136
RUN bun install --frozen-lockfile --production --ignore-scripts
3237

3338
# Production runs its own install + generate; no need to generate in base.

0 commit comments

Comments
 (0)