Files
knowai/Dockerfile
tobegold574 28a2ccb3fb
Some checks reported errors
continuous-integration/drone/push Build was killed
feat(project): 创建基础项目架构,上传基础架构文件
feat(CI): 提供.drone.yml,可以用于对后续更新配置文件做CI验证

feat(image): 完成镜像搭建knowai-nuxt-base:1.0.0,上传对应Dockerfile
2025-11-02 20:10:49 +08:00

26 lines
766 B
Docker
Raw 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.

# ------------------------------------------------
# 基础镜像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"]