feat(project): 创建基础项目架构,上传基础架构文件 feat(CI): 提供.drone.yml,可以用于对后续更新配置文件做CI验证 feat(image): 完成镜像搭建knowai-nuxt-base:1.0.0,上传对应Dockerfile
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
tobegold574
2025-11-03 15:40:21 +08:00
parent 36a5672b00
commit d84b83430a
12 changed files with 10024 additions and 18 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
# ------------------------------------------------
# 基础镜像Node LTSDebian trixie-slim
# ------------------------------------------------
FROM node:lts-trixie-slim
WORKDIR /usr/src/app
# ------------------------------------------------
# 安装全局依赖:框架生态核心模块
# ------------------------------------------------
RUN npm install -g \
nuxt \
@pinia/nuxt \
@element-plus/nuxt \
@nuxtjs/tailwindcss
# ------------------------------------------------
# 暴露端口Nuxt 默认 3000
# ------------------------------------------------
EXPOSE 3000
# ------------------------------------------------
# 默认进入 shell或可改为 nuxt dev
# ------------------------------------------------
CMD ["bash"]