Update aichat version and add conf generation using ollama API.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
FROM rust:latest
|
||||
|
||||
RUN rustup target add x86_64-unknown-linux-musl
|
||||
RUN apt update && apt install -y musl-tools musl-dev curl
|
||||
RUN apt update && apt install -y musl-tools musl-dev curl jq
|
||||
RUN update-ca-certificates
|
||||
|
||||
ADD src/aichat/entrypoint.sh /entrypoint.sh
|
||||
@@ -11,7 +11,7 @@ RUN useradd -ms /bin/bash aichat
|
||||
USER aichat
|
||||
|
||||
WORKDIR /home/aichat
|
||||
RUN git clone --branch v0.29.0 --depth 1 https://github.com/sigoden/aichat
|
||||
RUN git clone --branch v0.30.0 --depth 1 https://github.com/sigoden/aichat
|
||||
WORKDIR /home/aichat/aichat
|
||||
RUN cargo build --release --target=x86_64-unknown-linux-musl
|
||||
|
||||
@@ -20,8 +20,8 @@ RUN cp /home/aichat/aichat/target/x86_64-unknown-linux-musl/release/aichat /usr/
|
||||
|
||||
USER aichat
|
||||
RUN mkdir -p /home/aichat/.config/aichat
|
||||
ADD tools/gen_aichat_conf.sh /home/aichat/gen_aichat_conf.sh
|
||||
|
||||
ADD src/aichat/config.yaml /home/aichat/.config/aichat/config.yaml
|
||||
ADD src/aichat/roles /home/aichat/.config/aichat/roles
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat ~/.config/aichat/config.yaml | grep -v 'api_key' | sed "s/localhost/ollama/" | tee ~/.config/aichat/config.yaml.tmp
|
||||
mv ~/.config/aichat/config.yaml.tmp ~/.config/aichat/config.yaml
|
||||
|
||||
bash ~/gen_aichat_conf.sh > ~/.config/aichat/config.yaml
|
||||
aichat --serve 0.0.0.0
|
||||
|
||||
Reference in New Issue
Block a user