使用官方文档启动mineadmin后台
# 首先下载源代码
github仓库地址直接拉取
https://github.com/mineadmin/MineAdmin.git (opens new window)
# 需要修改的地方
修改根目录下的dockerfile文件
配置npm和pnpm两个为淘宝镜像,不然拉取一直失败
frontend:
build:
context: ./web
args:
MINE_NODE_ENV: production
NPM_REGISTRY: https://registry.npmmirror.com
PNPM_REGISTRY: https://registry.npmmirror.com
restart: always
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
另外需要修改web目录下的dockerfile
大概在13到14行也是配置npm 的淘宝镜像
# 配置 pnpm 使用淘宝镜像
RUN pnpm config set registry https://registry.npmmirror.com
RUN pnpm config set @types:registry https://registry.npmmirror.com
1
2
3
2
3
# 启动命令
先进入到mineadmin的内部启动后台程序
查看当前docker的运行状态
docker ps
进入mineadmin里面
docker exec -it mineadmin-hyperf-1 /bin/bash
然后开始执行
编辑 (opens new window)
上次更新: 2024/12/18, 17:45:13
- 01
- 免费的在线logo设计,uugai找了我好就12-24
- 02
- Untitled12-24