Files
AiTool/frontend_spa/Dockerfile.dev
2026-03-18 17:01:10 +08:00

14 lines
295 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM alpine:3.21
WORKDIR /app
# 仅用于开发:容器内跑 Vite dev server
# 依赖用 volume 缓存frontend_spa_node_modules首次启动会 npm install
RUN apk add --no-cache nodejs npm
EXPOSE 3000
CMD ["sh", "-c", "npm install && npm run dev -- --host 0.0.0.0 --port 3000"]