Skip to content

Commit 66af1a4

Browse files
committed
docker : fix docker locale issue (#6267)
1 parent 42cadc7 commit 66af1a4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.devops/llama-server-cuda.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ FROM ${BASE_CUDA_RUN_CONTAINER} AS runtime
3030
RUN apt-get update && \
3131
apt-get install -y libcurl4-openssl-dev libgomp1 curl
3232

33+
# Adds locale pack
34+
RUN apt-get update && apt-get install -y locales && locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8
35+
3336
COPY --from=build /app/build/ggml/src/libggml.so /libggml.so
3437
COPY --from=build /app/build/src/libllama.so /libllama.so
3538
COPY --from=build /app/build/bin/llama-server /llama-server

.devops/llama-server-intel.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ FROM intel/oneapi-basekit:$ONEAPI_VERSION AS runtime
2323
RUN apt-get update && \
2424
apt-get install -y libcurl4-openssl-dev curl
2525

26+
# Add locale pack
27+
RUN apt-get update && apt-get install -y locales && locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8
28+
2629
COPY --from=build /app/build/bin/llama-server /llama-server
2730

2831
ENV LC_ALL=C.utf8

0 commit comments

Comments
 (0)