VPS 增加 frontend Docker 服务替代 Vercel

This commit is contained in:
2569718930@qq.com
2026-05-26 01:04:20 +08:00
parent cf84b8336f
commit f2ce23d7de
2 changed files with 35 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM node:20-alpine
WORKDIR /app/frontend
COPY package.json package-lock.json ./
RUN npm ci
COPY . ./
RUN npm run build
EXPOSE 3000
CMD ["npm", "run", "start"]