From 0390d8a86f50360a4df89165db62972328d22ca4 Mon Sep 17 00:00:00 2001 From: Shuchu Han Date: Thu, 26 Sep 2024 23:30:02 -0400 Subject: [PATCH] fix: Update the base image for feature-server. (#4576) Signed-off-by: Shuchu Han --- .../feast/infra/feature_servers/multicloud/Dockerfile | 7 ++++--- .../feast/infra/feature_servers/multicloud/Dockerfile.dev | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile index 3114f03f52..9084eb4bce 100644 --- a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile +++ b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile @@ -1,8 +1,9 @@ -FROM python:3.11 - +FROM debian:11-slim RUN apt update && \ apt install -y \ jq \ + python3 \ + python3-pip \ python3-dev \ build-essential @@ -18,4 +19,4 @@ RUN apt update RUN apt -y install libarrow-dev # modify permissions to support running with a random uid RUN mkdir -m 775 /.cache -RUN chmod g+w $(python -c "import feast.ui as _; print(_.__path__)" | tr -d "[']")/build/projects-list.json +RUN chmod g+w $(python3 -c "import feast.ui as _; print(_.__path__)" | tr -d "[']")/build/projects-list.json diff --git a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.dev b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.dev index 49e70839a9..3be42056f0 100644 --- a/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.dev +++ b/sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.dev @@ -1,8 +1,10 @@ -FROM python:3.11 +FROM debian:11-slim RUN apt update && \ apt install -y \ jq \ + python3 \ + python3-pip \ python3-dev \ build-essential @@ -19,4 +21,4 @@ RUN apt update RUN apt -y install libarrow-dev # modify permissions to support running with a random uid RUN mkdir -m 775 /.cache -RUN chmod g+w $(python -c "import feast.ui as _; print(_.__path__)" | tr -d "[']")/build/projects-list.json +RUN chmod g+w $(python3 -c "import feast.ui as _; print(_.__path__)" | tr -d "[']")/build/projects-list.json