docker : fix docker locale issue (#6267)

This commit is contained in:
Felix 2024-11-02 10:30:23 -07:00
parent 42cadc74bd
commit 66af1a4b4c
2 changed files with 6 additions and 0 deletions

View file

@ -30,6 +30,9 @@ FROM ${BASE_CUDA_RUN_CONTAINER} AS runtime
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y libcurl4-openssl-dev libgomp1 curl apt-get install -y libcurl4-openssl-dev libgomp1 curl
# Adds locale pack
RUN apt-get update && apt-get install -y locales && locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8
COPY --from=build /app/build/ggml/src/libggml.so /libggml.so COPY --from=build /app/build/ggml/src/libggml.so /libggml.so
COPY --from=build /app/build/src/libllama.so /libllama.so COPY --from=build /app/build/src/libllama.so /libllama.so
COPY --from=build /app/build/bin/llama-server /llama-server COPY --from=build /app/build/bin/llama-server /llama-server

View file

@ -23,6 +23,9 @@ FROM intel/oneapi-basekit:$ONEAPI_VERSION AS runtime
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y libcurl4-openssl-dev curl apt-get install -y libcurl4-openssl-dev curl
# Add locale pack
RUN apt-get update && apt-get install -y locales && locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8
COPY --from=build /app/build/bin/llama-server /llama-server COPY --from=build /app/build/bin/llama-server /llama-server
ENV LC_ALL=C.utf8 ENV LC_ALL=C.utf8