diff --git a/.devops/full.Dockerfile b/.devops/full.Dockerfile index ef96ba9b8..687628b35 100644 --- a/.devops/full.Dockerfile +++ b/.devops/full.Dockerfile @@ -3,7 +3,7 @@ ARG UBUNTU_VERSION=22.04 FROM ubuntu:$UBUNTU_VERSION as build RUN apt-get update && \ - apt-get install -y build-essential python3 python3-pip git language-pack-zh-hans language-pack-zh-hant + apt-get install -y build-essential python3 python3-pip git COPY requirements.txt requirements.txt @@ -16,4 +16,6 @@ COPY . . RUN make +ENV LC_ALL=C.utf8 + ENTRYPOINT ["/app/.devops/tools.sh"] diff --git a/.devops/main.Dockerfile b/.devops/main.Dockerfile index fc34a0c18..3ab1decd6 100644 --- a/.devops/main.Dockerfile +++ b/.devops/main.Dockerfile @@ -15,4 +15,6 @@ FROM ubuntu:$UBUNTU_VERSION as runtime COPY --from=build /app/main /main +ENV LC_ALL=C.utf8 + ENTRYPOINT [ "/main" ] diff --git a/README.md b/README.md index e305cac83..28842e968 100644 --- a/README.md +++ b/README.md @@ -662,11 +662,6 @@ or with a light image: ```bash docker run -v /path/to/models:/models ghcr.io/ggerganov/llama.cpp:light -m /models/7B/ggml-model-q4_0.bin -p "Building a website can be done in 10 simple steps:" -n 512 ``` -If you want to use Chinese model, use this command. -> more options [#1673](https://github.com/ggerganov/llama.cpp/pull/1673) -``` -docker run -v /path/to/models:/models -e LANG=C.utf8 ghcr.io/ggerganov/llama.cpp:full --run -m /models/7B/ggml-model-q4_0.bin -p "Building a website can be done in 10 simple steps:" -n 512 -``` ### Contributing