From 3e5dd0151699880f579ffddaa76293ede06cad2a Mon Sep 17 00:00:00 2001 From: Tony Mongkolsmai <41082846+tonym97@users.noreply.github.com> Date: Mon, 22 Jul 2024 10:16:22 -0400 Subject: [PATCH] Update to remove warnings when building Dockerfiles due to unsafe syntax (#327) Co-authored-by: chen, suyue --- comps/asr/Dockerfile | 2 +- comps/dataprep/milvus/docker/Dockerfile | 2 +- comps/dataprep/pgvector/langchain/docker/Dockerfile | 2 +- comps/dataprep/pinecone/docker/Dockerfile | 2 +- comps/dataprep/qdrant/docker/Dockerfile | 2 +- comps/dataprep/redis/langchain/docker/Dockerfile | 2 +- comps/dataprep/redis/langchain_ray/docker/Dockerfile | 2 +- comps/dataprep/redis/llama_index/docker/Dockerfile | 2 +- comps/guardrails/langchain/docker/Dockerfile | 2 +- comps/guardrails/pii_detection/docker/Dockerfile | 2 +- comps/llms/utils/lm-eval/Dockerfile.cpu | 2 +- comps/reranks/fastrag/docker/Dockerfile | 2 +- comps/reranks/tei/docker/Dockerfile | 2 +- comps/retrievers/langchain/milvus/docker/Dockerfile | 2 +- comps/tts/Dockerfile | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/comps/asr/Dockerfile b/comps/asr/Dockerfile index fd1db5806..cc2740b7d 100644 --- a/comps/asr/Dockerfile +++ b/comps/asr/Dockerfile @@ -3,7 +3,7 @@ FROM python:3.11-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 COPY comps /home/comps diff --git a/comps/dataprep/milvus/docker/Dockerfile b/comps/dataprep/milvus/docker/Dockerfile index b141579c4..7e2f2202b 100644 --- a/comps/dataprep/milvus/docker/Dockerfile +++ b/comps/dataprep/milvus/docker/Dockerfile @@ -4,7 +4,7 @@ FROM python:3.11-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 ARG ARCH="cpu" diff --git a/comps/dataprep/pgvector/langchain/docker/Dockerfile b/comps/dataprep/pgvector/langchain/docker/Dockerfile index 347b48684..75e70c524 100644 --- a/comps/dataprep/pgvector/langchain/docker/Dockerfile +++ b/comps/dataprep/pgvector/langchain/docker/Dockerfile @@ -4,7 +4,7 @@ FROM python:3.11-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 ARG ARCH="cpu" diff --git a/comps/dataprep/pinecone/docker/Dockerfile b/comps/dataprep/pinecone/docker/Dockerfile index 5db904dbf..d19ff6ab4 100644 --- a/comps/dataprep/pinecone/docker/Dockerfile +++ b/comps/dataprep/pinecone/docker/Dockerfile @@ -4,7 +4,7 @@ FROM python:3.11-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \ build-essential \ diff --git a/comps/dataprep/qdrant/docker/Dockerfile b/comps/dataprep/qdrant/docker/Dockerfile index 5297d6101..bdf0315e2 100644 --- a/comps/dataprep/qdrant/docker/Dockerfile +++ b/comps/dataprep/qdrant/docker/Dockerfile @@ -4,7 +4,7 @@ FROM python:3.11-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 ARG ARCH="cpu" diff --git a/comps/dataprep/redis/langchain/docker/Dockerfile b/comps/dataprep/redis/langchain/docker/Dockerfile index 1d9f529b7..f7fcff5a7 100644 --- a/comps/dataprep/redis/langchain/docker/Dockerfile +++ b/comps/dataprep/redis/langchain/docker/Dockerfile @@ -4,7 +4,7 @@ FROM python:3.11-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 ARG ARCH="cpu" diff --git a/comps/dataprep/redis/langchain_ray/docker/Dockerfile b/comps/dataprep/redis/langchain_ray/docker/Dockerfile index 4d1c44cc2..e5c27cb34 100644 --- a/comps/dataprep/redis/langchain_ray/docker/Dockerfile +++ b/comps/dataprep/redis/langchain_ray/docker/Dockerfile @@ -4,7 +4,7 @@ FROM python:3.11-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 ARG ARCH="cpu" diff --git a/comps/dataprep/redis/llama_index/docker/Dockerfile b/comps/dataprep/redis/llama_index/docker/Dockerfile index bf67f036a..1bf0e8d4a 100644 --- a/comps/dataprep/redis/llama_index/docker/Dockerfile +++ b/comps/dataprep/redis/llama_index/docker/Dockerfile @@ -4,7 +4,7 @@ FROM python:3.11-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 ARG ARCH="cpu" diff --git a/comps/guardrails/langchain/docker/Dockerfile b/comps/guardrails/langchain/docker/Dockerfile index bf666b642..0cb6df85f 100644 --- a/comps/guardrails/langchain/docker/Dockerfile +++ b/comps/guardrails/langchain/docker/Dockerfile @@ -3,7 +3,7 @@ FROM langchain/langchain:latest -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 ARG ARCH="cpu" diff --git a/comps/guardrails/pii_detection/docker/Dockerfile b/comps/guardrails/pii_detection/docker/Dockerfile index c9a187524..aac6d29b8 100644 --- a/comps/guardrails/pii_detection/docker/Dockerfile +++ b/comps/guardrails/pii_detection/docker/Dockerfile @@ -5,7 +5,7 @@ FROM python:3.11-slim ARG ARCH="cpu" # Set this to "cpu" or "gpu" -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \ build-essential \ diff --git a/comps/llms/utils/lm-eval/Dockerfile.cpu b/comps/llms/utils/lm-eval/Dockerfile.cpu index bf81a90c4..933a523a5 100644 --- a/comps/llms/utils/lm-eval/Dockerfile.cpu +++ b/comps/llms/utils/lm-eval/Dockerfile.cpu @@ -3,7 +3,7 @@ FROM ubuntu:${UBUNTU_VER} as devel ARG REPO_COMPS=https://github.com/opea-project/GenAIComps.git ARG BRANCH=main -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \ aspell \ diff --git a/comps/reranks/fastrag/docker/Dockerfile b/comps/reranks/fastrag/docker/Dockerfile index 7d7eca6c4..8372e33b7 100644 --- a/comps/reranks/fastrag/docker/Dockerfile +++ b/comps/reranks/fastrag/docker/Dockerfile @@ -4,7 +4,7 @@ FROM python:3.10-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \ libgl1-mesa-glx \ diff --git a/comps/reranks/tei/docker/Dockerfile b/comps/reranks/tei/docker/Dockerfile index 24949c85f..851fbfd58 100644 --- a/comps/reranks/tei/docker/Dockerfile +++ b/comps/reranks/tei/docker/Dockerfile @@ -4,7 +4,7 @@ FROM python:3.11-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 ARG ARCH="cpu" diff --git a/comps/retrievers/langchain/milvus/docker/Dockerfile b/comps/retrievers/langchain/milvus/docker/Dockerfile index 69a971184..99c977e6f 100644 --- a/comps/retrievers/langchain/milvus/docker/Dockerfile +++ b/comps/retrievers/langchain/milvus/docker/Dockerfile @@ -4,7 +4,7 @@ FROM python:3.11-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 ARG ARCH="cpu" diff --git a/comps/tts/Dockerfile b/comps/tts/Dockerfile index 50dd9e15f..73272567d 100644 --- a/comps/tts/Dockerfile +++ b/comps/tts/Dockerfile @@ -3,7 +3,7 @@ FROM python:3.11-slim -ENV LANG C.UTF-8 +ENV LANG=C.UTF-8 COPY comps /home/comps