fix: Docker pandoc version
manual pandoc install in docker
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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/
|
||||||
12
Dockerfile
12
Dockerfile
@@ -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 \
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user