-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker for anki sync #2715
Comments
Feature requests belong on the forums. This is not something I'm likely to add in the near future, but it should be fairly simple to build yourself. |
First version of docker prototype. FROM rust AS builder
SHELL ["/bin/bash", "-uo", "pipefail", "-c"]
ENV TARGET x86_64-unknown-linux-musl
RUN rustup target add "$TARGET"
RUN apt-get -y update && apt-get -y install protobuf-compiler musl musl-dev musl-tools
ENV PROTOC=/usr/bin/protoc
RUN cargo install --locked --target "$TARGET" --git https://github.com/ankitects/anki.git --tag 23.10 anki-sync-server
RUN ldd /usr/local/cargo/bin/anki-sync-server
FROM scratch
ENV SYNC_BASE=/data
COPY --from=builder --chmod=0755 /usr/local/cargo/bin/anki-sync-server /
CMD ["./anki-sync-server"] edit: see https://github.com/LuckyTurtleDev/docker-images/tree/main/dockerfiles/anki. |
Also linking LuckyTurtleDev's later update with a published container image and discussion with Damien (dae) in a PR: |
When I used this dockerfile to build, the following error occurred. I don’t know the reason. Can you please tell me the cause of the error?
|
@JiangLongLiu Any reason you're trying to build yourself? You can use the already published and working image linked in #2715 (comment) https://github.com/LuckyTurtleDev/docker-images/pkgs/container/anki |
Thank you very much for your help, the image has been downloaded. Due to network issues in my area, I cannot download the image directly from ghcr.io. So I took a zigzag approach
How should I build a docker container through docker-compose? Is there any corresponding blog article that I can refer to? |
You remove |
I have rebuild the image, but can not reproduce your error. Is their any reason, why you build an outdated version from anki? |
Keep in mint the Dockerfile might change in future. The current version of Dockerfile, prebuild image and doc is available at: https://github.com/LuckyTurtleDev/docker-images/tree/main/dockerfiles/anki. |
thank you very much ! |
Because I specified the version number to build |
Can we have official docker image to run sync server?
The text was updated successfully, but these errors were encountered: