Michel Hagenah hagenahm
  • Joined on 2024-04-02

anki-sync-docker (latest)

Published 2024-05-20 12:48:34 +02:00 by hagenahm

Installation

docker pull gitea.hagenahm.de/hagenahm/anki-sync-docker:latest
sha256:4cf0848409b3f78fe73b8799887a97d7aa4cefc03459a0905200bf1437f49adc

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=22.04
ADD file:a5d32dc2ab15ff0d7dbd72af26e361eb1f3e87a0d29ec3a1ceab24ad7b3e6ba9 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 23.12.1 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
com.docker.compose.project anki-sync-docker
com.docker.compose.service anki-container
com.docker.compose.version 2.27.0
description Docker container for the official anki sync server
org.opencontainers.image.authors dev@hagenahm.de
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.version 22.04
Details
Container
2024-05-20 12:48:34 +02:00
2
OCI / Docker
linux/amd64
dev@hagenahm.de
541 MiB
Versions (3) View all
nightly 2025-04-09
main 2025-04-09
latest 2024-05-20