diff --git a/Dockerfile b/Dockerfile index f447597f0..39fdce615 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ RUN mkdir workspace && pip install --target workspace ./aws-opentelemetry-distro # will complain that grpc is not installed, which is more understandable. References: # * https://github.com/open-telemetry/opentelemetry-operator/blob/b5bb0ae34720d4be2d229dafecb87b61b37699b0/autoinstrumentation/python/requirements.txt#L2 # * https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/azure-functions/recover-python-functions.md#troubleshoot-cannot-import-cygrpc +ENV PYTHONPATH=/operator-build/workspace RUN pip uninstall opentelemetry-exporter-otlp-proto-grpc -y RUN pip uninstall grpcio -y