From 54fa7730c6aa83733b5718dba1bcf80e6b5e5d91 Mon Sep 17 00:00:00 2001 From: Chris Amico Date: Mon, 15 Jun 2026 14:58:50 -0400 Subject: [PATCH] Pin local Python services to linux/amd64 The vendored libpdfium.so2 is an x86-64 ELF binary, but on Apple Silicon Docker runs the containers natively as arm64, so ctypes cannot load the library. Pin the django/celery services to linux/amd64 (via the &django anchor) to match the vendored binary and the production/Lambda environment. Co-Authored-By: Claude Opus 4.8 (1M context) --- local.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/local.yml b/local.yml index 05387510..3066264d 100644 --- a/local.yml +++ b/local.yml @@ -7,6 +7,7 @@ volumes: services: documentcloud_django: &django + platform: linux/amd64 build: context: . dockerfile: ./compose/local/django/Dockerfile