-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Zwlin98/master
feat: add Dockerfile to support using over tcp rpc
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |