diff --git a/Dockerfile b/Dockerfile index df942a0..b7905a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,12 @@ WORKDIR /orthocal CMD ["newrelic-admin", "run-program", "python", "server.py"] COPY requirements.txt . +# newrelic has no wheel for this Python, so pip builds it from source, and the +# slim image has no C compiler. Skip its optional C extensions outright: +# newrelic 14.0.0's fallback for a failed extension build is broken (its +# setup.py raises NameError on DistutilsPlatformError), and it would fall back +# to pure Python anyway. +ENV NEW_RELIC_EXTENSIONS=false # --no-compile skips pip's own bytecode compilation during install -- the # explicit compileall pass below (needed regardless, since it also covers # our own app code, not just installed packages) makes it redundant. diff --git a/requirements.txt b/requirements.txt index d282b10..714f60c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ django==6.1.2 icalendar==7.3.0 jdcal==1.4.1 mcp==2.3.0 -newrelic==13.5.0 +newrelic==14.0.0 python-dateutil==2.9.0.post0 requests==2.34.2 servestatic==4.4.0