fix: Docker pandoc version

manual pandoc install in docker
This commit is contained in:
eneller
2025-07-03 13:51:01 +02:00
parent 0c368df0de
commit 78e7052189
3 changed files with 13 additions and 6 deletions

1
.gitignore vendored
View File

@@ -372,3 +372,4 @@ pyrightconfig.json
# End of https://www.toptal.com/developers/gitignore/api/python,django,visualstudiocode,intellij+all # End of https://www.toptal.com/developers/gitignore/api/python,django,visualstudiocode,intellij+all
staticfiles/ staticfiles/
.docker/

View File

@@ -3,13 +3,19 @@ VOLUME [ "/app/src/epub2go_web/media" ]
EXPOSE 50000/tcp EXPOSE 50000/tcp
EXPOSE 50000/udp EXPOSE 50000/udp
ENV DJANGO_DEBUG=FALSE ENV DJANGO_DEBUG=FALSE
ARG BUILDARCH
COPY --from=ghcr.io/astral-sh/uv:0.7.18 /uv /uvx /bin/
WORKDIR /app WORKDIR /app
# Install dependencies # Install dependencies
RUN apt-get update # Manually install pandoc because debian repo version is ooold
RUN apt-get install -y pandoc RUN <<EOF
wget -O pandoc.deb https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-1-${BUILDARCH}.deb \
&& dpkg -i pandoc.deb
EOF
COPY --from=ghcr.io/astral-sh/uv:0.7.18 /uv /uvx /bin/
# Install python deps
RUN --mount=type=cache,target=/root/.cache/uv \ RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \ --mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \

View File

@@ -12,7 +12,7 @@ services:
env_file: env_file:
- .env - .env
volumes: volumes:
- ./data:/app/src/epub2go_web/media - ./.docker/data:/app/src/epub2go_web/media
redis: redis:
image: redis image: redis
celery: celery:
@@ -22,6 +22,6 @@ services:
- app - app
env_file: env_file:
- .env - .env
volumes:
- ./data:/app/src/epub2go_web/media
command: uv run --directory=/app/src celery -A epub2go_web worker --loglevel=INFO command: uv run --directory=/app/src celery -A epub2go_web worker --loglevel=INFO
volumes_from:
- app