summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorAdmin <babylon9@mx.buetow.org>2023-04-15 20:56:44 +0000
committerAdmin <babylon9@mx.buetow.org>2023-04-15 20:56:44 +0000
commita182e47eaef44a1a3c6234fb42fbf51017848592 (patch)
tree3ed27b80f65a0ec51ba3a792921de424374b14a0 /docker
parentbe5134e5dc215e158a1c77838972943a7246d3c5 (diff)
works
Diffstat (limited to 'docker')
-rw-r--r--docker/anki-sync-server/Dockerfile9
1 files changed, 5 insertions, 4 deletions
diff --git a/docker/anki-sync-server/Dockerfile b/docker/anki-sync-server/Dockerfile
index 39135e3..a1f8464 100644
--- a/docker/anki-sync-server/Dockerfile
+++ b/docker/anki-sync-server/Dockerfile
@@ -5,11 +5,12 @@ FROM rockylinux/rockylinux
RUN dnf update -y
RUN dnf install -y python39
-ADD ./anki-sync-server /anki-sync-server
+ADD ./anki-sync-server/src /anki-sync-server
RUN adduser anki-sync-server
-WORKDIR /anki-sync-server/src
+WORKDIR /anki-sync-server
-RUN pip3.9 install -r /anki-sync-server/src/requirements.txt
-RUN pip3.9 install -e /anki-sync-server/src
+RUN pip3.9 install -r /anki-sync-server/requirements.txt
+RUN pip3.9 install -e /anki-sync-server
+RUN sed -i 's|^data_root =.*|data_root = /data/collections|; s|^auth_db_path =.*|auth_db_path = /data/auth.db|' /anki-sync-server/ankisyncd.conf
CMD ["python3.9", "-m", "ankisyncd"]