feat: initial commit for newborn tracker with family & role management, full responsive ui, offline assets
This commit is contained in:
commit
01f9f2c514
72 files changed
+11186
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# 拷贝项目文件(包含宿主机提前安装好的 node_modules)
|
||||
COPY . .
|
||||
|
||||
# 如果宿主机尚未预装 node_modules,则在镜像内进行兜底安装
|
||||
RUN if [ ! -d "node_modules" ] || [ -z "$(ls -A node_modules 2>/dev/null)" ]; then \
|
||||
npm install --omit=dev --no-audit; \
|
||||
fi
|
||||
|
||||
EXPOSE 9898
|
||||
|
||||
ENV PORT=9898
|
||||
ENV NODE_ENV=production
|
||||
|
||||
CMD ["node", "server/app.js"]
|
||||
Reference in new issue
Block a user