Skip to content

Commit

Permalink
Update base image
Browse files Browse the repository at this point in the history
Noticed that there still was an issue starting the backend when doing a clean Docker build. This was because of the following:

* The default Python version on Alpine 3.19 is 3.11.
* This means that system Python packages will be installed into `/usr/lib/python3.11/site-packages`.
* We run Python 3.12 and are expecting Xapian to be installed into `/usr/lib/python3.12/site-packages`.

Alternatively, we might have been able to change `PYTHONPATH` to `/usr/lib/python3.11/site-packages`, but updating to the latest Alpine version makes sense anyway.
  • Loading branch information
tillprochaska committed Jan 18, 2025
1 parent 7a6058a commit 7a287f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12-alpine3.19
FROM python:3.12-alpine3.21

RUN apk --update add \
build-base \
Expand Down

0 comments on commit 7a287f5

Please sign in to comment.