diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..72a6d2d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM rust as builder + +RUN apt update && apt install -y clang librime-dev + +WORKDIR /app + +COPY . . + +RUN cargo build --release + +FROM debian:12 + +RUN apt update && apt install -y librime-dev + +WORKDIR /app + +COPY --from=builder /app/target/release/rime_ls /app + +EXPOSE 9257 + +CMD ["/app/rime_ls","--listen","0.0.0.0:9257"] diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..12a343c --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,11 @@ +version: "3" + +services: + rime-ls: + restart: always + build: . + ports: + - 9257:9257 + volumes: + # mount your rime user data + - /root/.config/my_rime:/root/.local/share/rime-ls