feat: implement custom node.js sync server and secure extension client with login/register UI

This commit is contained in:
jason
2026-03-03 23:50:26 +08:00
parent 0803f9cc14
commit fc4898a9ee
8 changed files with 629 additions and 99 deletions

17
server/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM node:18-slim
# 安装基本运行环境Debian slim 版通常有预编译的 sqlite3 二进制包,速度极快)
WORKDIR /app
RUN mkdir -p /app/data
# 强制安装不从源码编译的 sqlite3 以节省时间
RUN npm install express cors sqlite3 --build-from-source=false
# 复制服务端源码
COPY server.js .
# 暴露 3000 端口
EXPOSE 3000
# 启动服务
CMD ["node", "server.js"]