mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
close CLOUD-236 #### PR Dependency Tree * **PR #13001** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated system configuration to preload jemalloc for improved memory management in the Node.js application. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
17 lines
478 B
Docker
17 lines
478 B
Docker
FROM node:22-bookworm-slim
|
|
|
|
COPY ./packages/backend/server /app
|
|
COPY ./packages/frontend/apps/web/dist /app/static
|
|
COPY ./packages/frontend/admin/dist /app/static/admin
|
|
COPY ./packages/frontend/apps/mobile/dist /app/static/mobile
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends openssl libjemalloc2 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Enable jemalloc by preloading the library
|
|
ENV LD_PRELOAD=libjemalloc.so.2
|
|
|
|
CMD ["node", "./dist/main.js"]
|