mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-07 18:13:43 +00:00
This pr is trying to split `web` and `electron` entries from `core`. It allows more platform-related optimization to be addressed in each entry. We should remove all browser/electron only codes from `core` eventually, this is the very first step for that.
12 lines
306 B
Docker
12 lines
306 B
Docker
FROM node:20-bookworm-slim
|
|
|
|
COPY ./packages/backend/server /app
|
|
COPY ./packages/frontend/web/dist /app/static
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends openssl && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
CMD ["node", "--import", "./scripts/register.js", "./dist/index.js"]
|