|
@@ -6,6 +6,8 @@ RUN apk add --no-cache \
|
|
|
# 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.
|
|
@@ -24,4 +26,4 @@ CMD ["anki"]
|
|
|
# > 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 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}"
|
|
|
+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_share:${ANKI_BASE_PATH} --tmpfs /tmp:size=4M --volume /tmp/.X11-unix/:/tmp/.X11-unix/ --cap-drop ALL --security-opt no-new-privileges \${IMAGE}"
|