Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker部署遇到了点问题 #11

Closed
walkX opened this issue Jul 28, 2023 · 5 comments
Closed

docker部署遇到了点问题 #11

walkX opened this issue Jul 28, 2023 · 5 comments

Comments

@walkX
Copy link

walkX commented Jul 28, 2023

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
Copy link
Owner

weaigc commented Jul 29, 2023

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
Copy link

dw3143 commented Jul 31, 2023

问题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
Copy link
Owner

weaigc commented Jul 31, 2023

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

weaigc added a commit that referenced this issue Jul 31, 2023
weaigc added a commit that referenced this issue Jul 31, 2023
weaigc added a commit that referenced this issue Jul 31, 2023
weaigc added a commit that referenced this issue Jul 31, 2023
weaigc added a commit that referenced this issue Jul 31, 2023
weaigc added a commit that referenced this issue Jul 31, 2023
weaigc added a commit that referenced this issue Jul 31, 2023
weaigc added a commit that referenced this issue Jul 31, 2023
weaigc added a commit that referenced this issue Jul 31, 2023
weaigc added a commit that referenced this issue Jul 31, 2023
@weaigc
Copy link
Owner

weaigc commented Jul 31, 2023

问题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
Copy link
Owner

weaigc commented Jul 31, 2023

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

@weaigc weaigc closed this as completed Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants