Is there a way to copy the locally installed package into a docker image so that when the azure function is deploy the package is copied across?

ivanlouw
Tue, 10 Dec 2024 07:58:36 +0000
Image Builds

I have a private package I create that is hosted in private bitbucket repository. This repository is not accessible when I deploy to azure.

Is there a way to copy the locally installed package into a docker image so that when the azure function is deploy the package is copied across?

The repository is only available when connected via vpn and the url is not publicly available.

Thanks any and all advice.

I create a docker image and have tried to use the COPY command to copy the package to the image, but it keeps on failing with the following error: ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 4h34y7v4co0wxlbe157escvw2::v2546lxmycfvpvme2gdd57pew: “/azuretest/python_packages/lib/site-packages/testazureclient”: not found Process exited with code 1

3 posts - 3 participants