Michel Hagenah hagenahm
  • Joined on 2024-04-02

anki-sync-docker (main)

Published 2025-04-09 02:00:25 +02:00 by hagenahm

Installation

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

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:1b6c8c9518be42fa2afe5e241ca31677fce58d27cdfa88baa91a65a259be3637 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=25.2
RUN |1 PROTOBUF_VERSION=25.2 /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=25.2 /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=25.2 /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=25.2 /bin/sh -c curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y # buildkit
ENV PATH=/root/.cargo/bin:/protoc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN |1 PROTOBUF_VERSION=25.2 /bin/sh -c cargo install --git https://github.com/ankitects/anki.git --tag 24.11 anki-sync-server && rustup toolchain remove stable # buildkit
RUN |1 PROTOBUF_VERSION=25.2 /bin/sh -c apt remove curl build-essential unzip -y # buildkit
RUN |1 PROTOBUF_VERSION=25.2 /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 2025-04-09T00:00:20.905Z
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 952553efc4d9a20fbb467ed90b8587802ff43f9a
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
2025-04-09 02:00:25 +02:00
47
OCI / Docker
linux/amd64
dev@hagenahm.de
559 MiB
Versions (3) View all
nightly 2025-04-09
main 2025-04-09
latest 2024-05-20