我正在 Azure devops 上构建 React Native 项目,但在托管的 ubuntu 代理中遇到了文件观察器问题。我使用的图像是 ubuntu:16.04
。
在这种情况下如何设置 fs.inotify.max_user_watches
的任何建议。
我尝试在 Dockerfile 中进行设置,但没有成功。我的示例 Dockerfile 供参考
WORKDIR /usr
# Copy js contents
COPY app ./app
# Copy android contents
COPY android ./android
COPY App.js ./
COPY app.json ./
COPY index.js ./
COPY metro.config.js ./
COPY package.json ./
COPY package-lock.json ./
ENTRYPOINT ["./android/buildApp.sh"]