feat: implement custom node.js sync server and secure extension client with login/register UI
This commit is contained in:
17
server/Dockerfile
Normal file
17
server/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user