Michel Hagenah hagenahm
  • Joined on 2024-04-02

anki-sync-docker (nightly)

Published 2026-03-12 01:00:39 +01:00 by hagenahm

Installation

docker pull gitea.hagenahm.de/hagenahm/anki-sync-docker:nightly
sha256:7ba28d7fdeb1ea4bd063fdba631a1dddca3dba96022c6d579e6897f6c5fe1e37

About this package

Docker image for the anki sync selfhosted service

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=22.04
ADD file:52c0e467fa2e92f101018df01a0ff56580c752b7553fbe6df88e16b02af6d4ee 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 update && apt upgrade -y && apt install curl build-essential unzip -y && 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 # buildkit
RUN |1 PROTOBUF_VERSION=34.0 /bin/sh -c unzip protoc-$PROTOBUF_VERSION-linux-x86_64.zip -d /protoc # 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 remove curl build-essential unzip -y # buildkit
RUN |1 PROTOBUF_VERSION=34.0 /bin/sh -c rm -rf ~/.cargo/registry # buildkit
ENV SYNC_BASE=/anki-data
EXPOSE map[8080/tcp:{}]
CMD ["/bin/sh" "-c" "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-03-12T00:00:34.716Z
org.opencontainers.image.description Docker image for the anki sync selfhosted service
org.opencontainers.image.licenses
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.revision 8bb559390aa26a60c7af2b2d04c19d890f0ddb4b
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-03-12 01:00:39 +01:00
152
OCI / Docker
linux/amd64
dev@hagenahm.de
569 MiB
Versions (3) View all
nightly 2026-03-12
main 2026-03-12
latest 2024-05-20