From 23bc3050671f4b04249ba40b07eeccdc309a7a8b Mon Sep 17 00:00:00 2001 From: Tommy Hughes Date: Thu, 21 Nov 2024 08:51:32 -0600 Subject: [PATCH] dockerfile cleanup, reduce image size Signed-off-by: Tommy Hughes --- .../feast/infra/feature_servers/multicloud/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile index b337643653a..6b61a275b90 100644 --- a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile +++ b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile @@ -1,5 +1,8 @@ FROM python:3.11-slim-bullseye +RUN pip install --no-cache-dir pip --upgrade && \ + pip install --no-cache-dir "feast[aws,gcp,snowflake,redis,go,mysql,postgres,opentelemetry,grpcio]" + RUN apt update && apt install -y -V ca-certificates lsb-release wget && \ wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && \ apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb && apt update && \ @@ -9,9 +12,6 @@ RUN apt update && apt install -y -V ca-certificates lsb-release wget && \ apt remove -y lsb-release wget && \ apt-get clean && rm -rf /var/cache/apt/lists -RUN pip install --no-cache-dir pip --upgrade && \ - pip install --no-cache-dir "feast[aws,gcp,snowflake,redis,go,mysql,postgres,opentelemetry,grpcio]" - # modify permissions to support running with a random uid RUN mkdir -m 775 /.cache RUN chmod g+w $(python3 -c "import feast.ui as _; print(_.__path__)" | tr -d "[']")/build/projects-list.json