0

I m building my project in dockerfile. While it is building it needs some external dlls in a external git repository folder. When I tried git clone in dockerfile I faced 504 unable access error.Git repositories in internal addres in company not github. I tried many ways about git cloning but I could not succes git cloning in dockerfile. Also I tried remove proxy settings, too. Could you suggest me a way how I can get external dlls to my dockerfile while creating image build?

captainblack
  • 903
  • 3
  • 9
  • 20

2 Answers2

0

I would suggest to download that external dll as static dll file in your code. Then build the container with the local dll file and copy into the container. The static file is under your control even if one day you want to update it.

XaviOutside
  • 141
  • 4
0

Create a basic docker image that contains all DLLs lets call it dll-source. In your application docker image using multistage builder add DLLs from dll-source docker image.

Akash Sharma
  • 721
  • 3
  • 6