first commit

This commit is contained in:
2025-09-11 14:15:26 +08:00
commit 4a5d1dbdf2
29 changed files with 2879 additions and 0 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
# syntax=docker/dockerfile:1
FROM node:18-alpine
WORKDIR /app
# 安装依赖(利用缓存)
COPY package.json package-lock.json* yarn.lock* pnpm-lock.yaml* ./
RUN if [ -f package-lock.json ]; then npm ci; \
elif [ -f yarn.lock ]; then yarn install --frozen-lockfile; \
elif [ -f pnpm-lock.yaml ]; then corepack enable && pnpm install --frozen-lockfile; \
else npm install; fi
# 复制源码
COPY . .
ENV HOST=0.0.0.0
ENV CHOKIDAR_USEPOLLING=true
EXPOSE 3100
CMD ["npm","run","dev","--","--host","0.0.0.0","--port","3100"]