Containerfile 1.3 KB

123456789101112131415161718192021222324252627
  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. CMD ["anki"]
  8. # uid & gid in `--user` arbitrary.
  9. # tmpfs size for:
  10. # > 2024-10-08 22:29:24,351:ERROR:waitress: Exception while serving
  11. # > /_anki/js/vendor/mathjax/tex-chtml-full.js
  12. # > Traceback (most recent call last):
  13. # > File "…/site-packages/waitress/channel.py", line 428, in service
  14. # > task.service()
  15. # > …
  16. # > File "…/site-packages/waitress/buffers.py", line 253, in _set_large_buffer
  17. # > self.buf = TempfileBasedBuffer(oldbuf)
  18. # > ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  19. # > File "…/site-packages/waitress/buffers.py", line 112, in __init__
  20. # > FileBasedBuffer.__init__(self, self.newfile(), from_buffer)
  21. # > File "…/site-packages/waitress/buffers.py", line 38, in __init__
  22. # > file.write(data)
  23. # > OSError: [Errno 28] No space left on device
  24. LABEL podman-run-x11="podman run --name anki --rm --user 25772:34044 --env HOME=/mnt/home --env DISPLAY --env QTWEBENGINE_DISABLE_SANDBOX=1 --read-only --read-only-tmpfs=false --volume anki_share:/mnt/home/.local/share/Anki2/ --tmpfs /tmp:size=4M --volume /tmp/.X11-unix/:/tmp/.X11-unix/ --cap-drop ALL --security-opt no-new-privileges \${IMAGE}"