相关疑难解决方法(0)

Not understanding how docker build --secret is supposed to be used

I can get the example working that Docker provides and just about every blog is just a variation of it: just printing out the secret value in the build output.

Cool... but I need to get it into my app that is looking for it and failing to build because it doesn't exist. That much isn't clear to me and I've been unable to figure it out myself.

This is the project structure:

project-root/
  api/
    docker/
      Dockerfile
      mysecret.txt
    src/
      ... …
Run Code Online (Sandbox Code Playgroud)

docker dockerfile

9
推荐指数
1
解决办法
1万
查看次数

标签 统计

docker ×1

dockerfile ×1