Skip to content

Commit

Permalink
Merge pull request #17 from Zwlin98/master
Browse files Browse the repository at this point in the history
feat: add Dockerfile to support using over tcp rpc
  • Loading branch information
wlh320 authored Dec 9, 2023
2 parents 747bc9c + 76c8891 commit 375b444
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
11 changes: 11 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 375b444

Please sign in to comment.