weaigc / bingo

Bingo,一个让你呼吸顺畅 New Bing。
https://bing.github1s.tk
MIT License
2.86k stars 1.23k forks source link

docker部署遇到了点问题 #11

Closed walkX closed 1 year ago

walkX commented 1 year ago

docker build . -t bingo

Sending build context to Docker daemon 1.035MB Step 1/15 : FROM node:18 ---> 0f9df951673d Step 2/15 : ARG DEBIAN_FRONTEND=noninteractive ---> Using cache ---> 7411aca1fe43 Step 3/15 : ENV BING_UA Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.0.0 ---> Using cache ---> 155a8c94ed7a Step 4/15 : ENV BING_COOKIE "" ---> Using cache ---> a1580d8c25e3 Step 5/15 : RUN useradd -o -u 1000 user ---> Using cache ---> b8a14fd537f9 Step 6/15 : USER user ---> Using cache ---> 551045026943 Step 7/15 : ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH ---> Using cache ---> 32a649c21546 Step 8/15 : WORKDIR $HOME/app ---> Using cache ---> 2bfb8a85cca7 Step 9/15 : COPY --chown=user package*.json $HOME/app/ ---> Using cache ---> 527b4b1a4db8 Step 10/15 : RUN npm install ---> Running in 6c5381a7689c npm ERR! code ERR_INVALID_ARG_TYPE npm ERR! The "path" argument must be of type string or an instance of Buffer or URL. Received null

npm ERR! Log files were not written due to an error writing to the directory: /home/user/.npm/_logs npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal

有没有大佬解答下怎么解决?

weaigc commented 1 year ago

docker build . -t bingo

Sending build context to Docker daemon 1.035MB Step 1/15 : FROM node:18 ---> 0f9df951673d Step 2/15 : ARG DEBIAN_FRONTEND=noninteractive ---> Using cache ---> 7411aca1fe43 Step 3/15 : ENV BING_UA Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.0.0 ---> Using cache ---> 155a8c94ed7a Step 4/15 : ENV BING_COOKIE "" ---> Using cache ---> a1580d8c25e3 Step 5/15 : RUN useradd -o -u 1000 user ---> Using cache ---> b8a14fd537f9 Step 6/15 : USER user ---> Using cache ---> 551045026943 Step 7/15 : ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH ---> Using cache ---> 32a649c21546 Step 8/15 : WORKDIR $HOME/app ---> Using cache ---> 2bfb8a85cca7 Step 9/15 : COPY --chown=user package*.json $HOME/app/ ---> Using cache ---> 527b4b1a4db8 Step 10/15 : RUN npm install ---> Running in 6c5381a7689c npm ERR! code ERR_INVALID_ARG_TYPE npm ERR! The "path" argument must be of type string or an instance of Buffer or URL. Received null

npm ERR! Log files were not written due to an error writing to the directory: /home/user/.npm/_logs npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal

有没有大佬解答下怎么解决? @walkX 试了一下,没有复现。你用最新代码试试,如果还是不行的话,我打个公共镜像

dw3143 commented 1 year ago

问题1: 电脑端Chrome浏览器能够正常访问使用,手机端的华为自带浏览器也可以使用 移动端Firefox浏览器无法访问,出现如下情况: _d86009c941bda045075cbd116fd619f9_-1499030374_Screenshot_20230731_105438

问题2: 在服务器的运行日志中出现如下,是服务器节点的原因吗 API response for /api/sydney exceeds 4MB. API Routes are meant to respond quickly. https://nextjs.org/docs/messages/api-routes-response-size-limit 666

求大佬解答!

weaigc commented 1 year ago

@dw3143 已知问题,刚刚已经修复了

weaigc commented 1 year ago

问题1: 电脑端Chrome浏览器能够正常访问使用,手机端的华为自带浏览器也可以使用 移动端Firefox浏览器无法访问,出现如下情况: d86009c941bda045075cbd116fd619f9-1499030374_Screenshot_20230731_105438

问题2: 在服务器的运行日志中出现如下,是服务器节点的原因吗 API response for /api/sydney exceeds 4MB. API Routes are meant to respond quickly. https://nextjs.org/docs/messages/api-routes-response-size-limit 666

求大佬解答!

@dw3143 firefox的问题已经修复并且发布,你更新到最新版就可以了

weaigc commented 1 year ago

@walkX docker 镜像已经发布 https://hub.docker.com/repository/docker/weaigc/bingo/