ztgoto commented on issue #702:
URL:
https://github.com/apache/apisix-dashboard/issues/702#issuecomment-722756387
我确实是使用了/api/Dockerfile构建才导致没有web界面.使用根目录下的Dockerfile master分支也能构建成功。
但master /api/Dockerfile 确实存在问题,构建时错误如下
```
Step 13/17 : RUN cd /go/manager-api/build-tools && lua schema-sync.lua
> /go/manager-api/schema.json && cd /go/manager-api/ && rm -rf
/go/manager-api/build-tools/
---> Running in f99c401d8f8b
lua: ./apisix/plugins/api-breaker.lua:24: attempt to index field 'shared' (a
nil value)
stack traceback:
./apisix/plugins/api-breaker.lua:24: in main chunk
[C]: in function 'require'
schema-sync.lua:128: in main chunk
[C]: ?
The command '/bin/sh -c cd /go/manager-api/build-tools && lua
schema-sync.lua > /go/manager-api/schema.json && cd /go/manager-api/
&& rm -rf /go/manager-api/build-tools/' returned a non-zero code: 1
```
我现在通过master
根目录Dockerfile构建成功的镜像却无法按照[文档](https://github.com/apache/apisix-dashboard/blob/v2.0/docs/deploy-with-docker.zh-CN.md)
中描述的那样启动
信息如下
```
docker run --network=host --rm -v
/etc/apisix-dashboard/conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml
imagenames
2020/11/06 01:30:14 [emerg] 1#1: host not found in upstream "manager" in
/etc/nginx/conf.d/default.conf:36
nginx: [emerg] host not found in upstream "manager" in
/etc/nginx/conf.d/default.conf:36
```
该项目文档的描述太过于简单了,也没有描述这块有需要nginx相关的配置
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]