This commit is contained in:
oneao committed 2025-10-20 22:07:03 +08:00
1 parent 09a699fbfe
commit f1df74a4d1
2 files changed
+51

No files matched your search

+8
View File
@@ -1,7 +1,13 @@
FROM mobiledevops/android-sdk-image:latest
# 更新系统并安装 Node/npm
RUN apt update \
&& apt install -y nodejs npm
# 👉 设置 npm 镜像源(推荐使用官方 npmmirror)
RUN npm config set registry https://registry.npmmirror.com
# 全局工具安装
RUN npm i -g eas-cli expo yarn
COPY ./ /WWW/APP
@@ -10,5 +16,7 @@ WORKDIR /WWW/APP
ENV EXPO_TOKEN=FFb6cn9saprFaYji0JVywV0RiNIB7t-PpUKO3jKQ
ENV NODE_ENV=production
# 项目依赖安装(使用上面配置的镜像源)
RUN npm i
CMD eas build --platform android --profile release --local
+43
View File
@@ -233,3 +233,46 @@ esac
echo "Docker 及 Docker Compose 安装完成 ✅"
```
### 权限不足
1. 添加docker用户组(默认有)
```
sudo groupadd docker
```
2. 添加当前用户到docker组中
```
sudo gpasswd -a $USER docker
```
3. 更新用户组
```
newgrp docker
```
重启生效 或 提前执行(建议重启)
```
sudo chown root:docker /var/run/docker.sock
```
### 镜像设置
访问:https://api.suoyinmulu.com/open/v1/docker-hub/seeded-up/lists
```bash
sudo vim /etc/docker/daemon.json
```
刷新:
```bash
sudo systemctl daemon-reload && sudo systemctl restart docker
```