BookWyrm: update Dockerfile and env handling

- Remove ARG BOOKWYRM_VERSION default, use Jinja variable directly
- Add proper SMTP environment variables mapping (EMAIL_HOST, EMAIL_PORT, TLS/SSL flags, user, password, default_from)
- Ensure env.j2 uses BookWyrm-expected names only
Ref: ChatGPT conversation 2025-09-02 https://chatgpt.com/share/68b6dc73-3784-800f-9a7e-340be498a412
This commit is contained in:
2025-09-02 14:01:04 +02:00
parent d760c042c2
commit 7c814e6e83
3 changed files with 20 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
# Build BookWyrm from source (no upstream image available)
ARG BOOKWYRM_VERSION={{ BOOKWYRM_VERSION | default('v0.7.5') }}
FROM python:3.11-bookworm AS builder
RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -9,7 +8,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
WORKDIR /src
# Shallow clone the chosen tag/branch
RUN git clone --depth=1 --branch "${BOOKWYRM_VERSION}" https://github.com/bookwyrm-social/bookwyrm.git .
RUN git clone --depth=1 --branch "{{ BOOKWYRM_VERSION }}" https://github.com/bookwyrm-social/bookwyrm.git .
# Pre-install Python deps to a wheelhouse for faster final image
RUN pip install --upgrade pip \