How to include files outside of Docker's build context?

前端 未结 14 810
情话喂你
情话喂你 2020-11-22 07:21

How can I include files from outside of Docker\'s build context using the \"ADD\" command in the Docker file?

From the Docker documentation:

T

14条回答
  •  南笙
    南笙 (楼主)
    2020-11-22 07:28

    You can also create a tarball of what the image needs first and use that as your context.

    https://docs.docker.com/engine/reference/commandline/build/#/tarball-contexts

提交回复
热议问题