Containerfile 1.3 KB

1234567891011121314151617181920212223242526272829
  1. FROM docker.io/alpine:20240807
  2. RUN apk add --no-cache \
  3. --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing \
  4. anki=24.06.2-r0
  5. # TODO merge
  6. RUN apk add --no-cache ttf-dejavu
  7. ARG ANKI_BASE_PATH=/mnt/anki-base
  8. ENV ANKI_BASE=${ANKI_BASE_PATH}
  9. CMD ["anki"]
  10. # uid & gid in `--user` arbitrary.
  11. # tmpfs size for:
  12. # > 2024-10-08 22:29:24,351:ERROR:waitress: Exception while serving
  13. # > /_anki/js/vendor/mathjax/tex-chtml-full.js
  14. # > Traceback (most recent call last):
  15. # > File "…/site-packages/waitress/channel.py", line 428, in service
  16. # > task.service()
  17. # > …
  18. # > File "…/site-packages/waitress/buffers.py", line 253, in _set_large_buffer
  19. # > self.buf = TempfileBasedBuffer(oldbuf)
  20. # > ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  21. # > File "…/site-packages/waitress/buffers.py", line 112, in __init__
  22. # > FileBasedBuffer.__init__(self, self.newfile(), from_buffer)
  23. # > File "…/site-packages/waitress/buffers.py", line 38, in __init__
  24. # > file.write(data)
  25. # > OSError: [Errno 28] No space left on device
  26. LABEL podman-run-x11="podman run --name anki --rm --user 25772:34044 --env DISPLAY --env QTWEBENGINE_DISABLE_SANDBOX=1 --read-only --read-only-tmpfs=false --volume anki_base:${ANKI_BASE_PATH} --tmpfs /tmp:size=4M --volume /tmp/.X11-unix/:/tmp/.X11-unix/ --cap-drop ALL --security-opt no-new-privileges \${IMAGE}"