Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading