Light 4J Oauth2 docker-compose 错误说找不到指定的 Dockerfile
Light4J Oauth2 docker-compose error's saying Cannot locate specified Dockerfile
在本地遵循有关 运行ning light4J oAuth 的文档中给出的内容。我能够 运行 在整个存储库上进行 maven clean install,但是当我尝试 运行 组合 docker 时,它失败了,说 DockerFile 不存在。下面是 light4J oAuth 存储库的主要存储库。
https://github.com/networknt/light-oauth2
随后是文档步骤。
https://doc.networknt.com/getting-started/light-oauth2/
运行“mvn clean install”后跟“docker-compose -f docker-compose-mysql.yml up”。
给出以下错误。 “错误:找不到指定的 Dockerfile:Dockerfile”。
以下是 docker 在 mac 上的安装。
docker-installtion-on-mac-local
如果有人知道可能是什么问题并指导我正确的方向,那就太棒了。谢谢
我查看了您的存储库。您的 Dockerfile 似乎位于 code/docker
、service/docker
等下,而不仅仅是 code/
、service/
等
有关详细信息,请参阅 build。
build
can be specified either as a string containing a path to the build context:
Example for docker-docs
version: "3.8"
services:
webapp:
build:
context: ./dir
dockerfile: Dockerfile-alternate
args:
buildno: 1
试试这个(以您的一个容器为例)
oauth2-code:
build:
context: ./code/docker
dockerfile: Dockerfile # Not mandatory
[...]
在本地遵循有关 运行ning light4J oAuth 的文档中给出的内容。我能够 运行 在整个存储库上进行 maven clean install,但是当我尝试 运行 组合 docker 时,它失败了,说 DockerFile 不存在。下面是 light4J oAuth 存储库的主要存储库。 https://github.com/networknt/light-oauth2
随后是文档步骤。 https://doc.networknt.com/getting-started/light-oauth2/
运行“mvn clean install”后跟“docker-compose -f docker-compose-mysql.yml up”。 给出以下错误。 “错误:找不到指定的 Dockerfile:Dockerfile”。
以下是 docker 在 mac 上的安装。 docker-installtion-on-mac-local
如果有人知道可能是什么问题并指导我正确的方向,那就太棒了。谢谢
我查看了您的存储库。您的 Dockerfile 似乎位于 code/docker
、service/docker
等下,而不仅仅是 code/
、service/
等
有关详细信息,请参阅 build。
build
can be specified either as a string containing a path to the build context: Example for docker-docs
version: "3.8"
services:
webapp:
build:
context: ./dir
dockerfile: Dockerfile-alternate
args:
buildno: 1
试试这个(以您的一个容器为例)
oauth2-code:
build:
context: ./code/docker
dockerfile: Dockerfile # Not mandatory
[...]