anki-sync-docker (main)

Published 2026-11-03 01:01:13 +01:00 by hagenahm

Installation

docker pull gitea.hagenahm.de/hagenahm/anki-sync-docker:main
sha256:f90b73a8fdf7ba5d01fd830dc25c933944999147a1fb58f6ff33e5d72bb66cc8

Images

Digest OS / Arch Size
1f521cce50 linux/amd64 555 MiB

Image Layers ( linux/amd64)

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.version=22.04
ADD file:ba52f9eec2a5a7de74e9a460017725370755c2d4814dd746bde7507601befb53 in /
CMD ["/bin/bash"]
LABEL description=Docker container for the official anki sync server
LABEL org.opencontainers.image.authors=dev@hagenahm.de
ARG PROTOBUF_VERSION=34.0
RUN |1 PROTOBUF_VERSION=34.0 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl build-essential unzip && rm -rf /var/lib/apt/lists/* # buildkit
RUN |1 PROTOBUF_VERSION=34.0 /bin/sh -c curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip && unzip protoc-${PROTOBUF_VERSION}-linux-x86_64.zip -d /protoc && rm protoc-${PROTOBUF_VERSION}-linux-x86_64.zip # buildkit
ENV PATH=/protoc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN |1 PROTOBUF_VERSION=34.0 /bin/sh -c curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.92.0 # buildkit
ENV PATH=/root/.cargo/bin:/protoc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN |1 PROTOBUF_VERSION=34.0 /bin/sh -c cargo install --locked --git https://github.com/ankitects/anki.git --tag 25.09.2 anki-sync-server && rustup toolchain remove stable # buildkit
RUN |1 PROTOBUF_VERSION=34.0 /bin/sh -c apt-get remove -y curl build-essential unzip && apt-get autoremove -y && rm -rf ~/.cargo/registry && rm -rf /var/lib/apt/lists/* # buildkit
ENV SYNC_BASE=/anki-data
EXPOSE [8080/tcp]
CMD ["anki-sync-server"]

Labels

Key Value
description Docker container for the official anki sync server
org.opencontainers.image.authors dev@hagenahm.de
org.opencontainers.image.created 2026-11-03T00:01:08.685Z
org.opencontainers.image.description Docker image for the anki sync selfhosted service
org.opencontainers.image.licenses
org.opencontainers.image.revision e1bbe2070123ec7a72673b452ee2cf4027b550ac
org.opencontainers.image.source https://gitea.hagenahm.de/hagenahm/anki-sync-docker
org.opencontainers.image.title anki-sync-docker
org.opencontainers.image.url https://gitea.hagenahm.de/hagenahm/anki-sync-docker
org.opencontainers.image.version nightly
Details
Container
2026-11-03 01:01:13 +01:00
62
OCI / Docker
Versions (4) View all
nightly 2026-11-03
main 2026-11-03
buildcache 2026-10-31
latest 2024-05-20