mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-04 00:28:33 +00:00
Expose is requierd for automatic port finding with load balancers like
Traefik without having to configure the port explict.
> error="service \"affine-affine\" error: port is missing"
container=affine-affine-a76ca4362da101be5a53279db7aac67595a9df0783b0026efc3e5431009cbd66
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Updated deployment configuration for container port exposure.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
19 lines
491 B
Docker
19 lines
491 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
|
|
|
|
EXPOSE 3010
|
|
|
|
CMD ["node", "./dist/main.js"]
|