Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Set tldextract cache to writable directory (#426)

Madison Swain-Bowden2890db1192fe
diff --git a/ingestion_server/Dockerfile b/ingestion_server/Dockerfile
index ed5746236..2ce96de46 100644
--- a/ingestion_server/Dockerfile
+++ b/ingestion_server/Dockerfile
@@ -13,6 +13,8 @@ RUN apt-get update \
&& chown -R supervisord:supervisord /worker_state
ENV PYTHONPATH=$PYTHONPATH:/ingestion_server/
+# TLDEXTRACT fails to cache in /home/supervisord, set its cache to /tmp instead
+ENV TLDEXTRACT_CACHE=/tmp/python-tldextract
WORKDIR /ingestion_server