FROM docker.io/alpine:20240807 RUN apk add --no-cache \ --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing \ anki=24.06.2-r0 # TODO merge RUN apk add --no-cache ttf-dejavu ARG ANKI_BASE_PATH=/mnt/anki-base ENV ANKI_BASE=${ANKI_BASE_PATH} CMD ["anki"] # uid & gid in `--user` arbitrary. # tmpfs size for: # > 2024-10-08 22:29:24,351:ERROR:waitress: Exception while serving # > /_anki/js/vendor/mathjax/tex-chtml-full.js # > Traceback (most recent call last): # > File "…/site-packages/waitress/channel.py", line 428, in service # > task.service() # > … # > File "…/site-packages/waitress/buffers.py", line 253, in _set_large_buffer # > self.buf = TempfileBasedBuffer(oldbuf) # > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ # > File "…/site-packages/waitress/buffers.py", line 112, in __init__ # > FileBasedBuffer.__init__(self, self.newfile(), from_buffer) # > File "…/site-packages/waitress/buffers.py", line 38, in __init__ # > file.write(data) # > OSError: [Errno 28] No space left on device 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}"