Skip to content

Instantly share code, notes, and snippets.

@sartak
Created January 17, 2024 22:57
Show Gist options
  • Save sartak/db588bd83c441ce2d44d52cee0b08bbf to your computer and use it in GitHub Desktop.
Save sartak/db588bd83c441ce2d44d52cee0b08bbf to your computer and use it in GitHub Desktop.
Anki sync server Dockerfile
FROM debian:sid-slim
ENV THROW_AWAY=0005
ENV DEBIAN_FRONTEND=noninteractive
RUN set -ex && apt update --fix-missing && apt install -y curl build-essential protobuf-compiler && rm -rf /var/lib/apt/
RUN curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo install --git https://github.com/ankitects/anki.git --tag 23.12 anki-sync-server
CMD ["anki-sync-server"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment