mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-11-22 03:18:50 +08:00
- 将 monkeycode-ai、docker、doc.md 等移入 frontend/ - 更新 .gitlab-ci.yml 中的路径引用 - 添加根目录 README 说明仓库结构 Made-with: Cursor
18 lines
341 B
Docker
18 lines
341 B
Docker
# 直接使用 nginx 镜像,因为应用已经在 CI 中构建完成
|
|
FROM nginx:alpine
|
|
|
|
# 复制构建产物到 nginx 目录
|
|
COPY dist/ /usr/share/nginx/html/
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
# 复制启动脚本
|
|
COPY start.sh /start.sh
|
|
RUN chmod +x /start.sh
|
|
|
|
# 暴露端口
|
|
EXPOSE 80
|
|
|
|
# 使用启动脚本启动
|
|
CMD ["/start.sh"]
|