Skip to content

Commit b83a702

Browse files
authored
fix: Using version args to install the correct feast version (#3953)
* using version args to install the correct feast version Signed-off-by: Chester Ong <chester.ong.ch@gmail.com> * revert the COPY command Signed-off-by: Chester Ong <chester.ong.ch@gmail.com> --------- Signed-off-by: Chester Ong <chester.ong.ch@gmail.com>
1 parent 6b8e96c commit b83a702

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

sdk/python/feast/infra/feature_servers/multicloud/Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
FROM python:3.8
22

3+
# Input the feast version to install
4+
# This requires feast package to be available in pypi before building this image
5+
ARG VERSION
6+
37
RUN apt update && \
48
apt install -y \
59
jq \
610
python3-dev \
711
build-essential
812

913
RUN pip install pip --upgrade
10-
RUN pip install "feast[aws,gcp,snowflake,redis,go,mysql,postgres]"
11-
14+
RUN pip install "feast[aws,gcp,snowflake,redis,go,mysql,postgres]==${VERSION}"
1215

1316
RUN apt update
1417
RUN apt install -y -V ca-certificates lsb-release wget
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
FROM python:3.8
22

3+
# Input the feast version to install
4+
# This requires feast package to be available in pypi before building this image
5+
ARG VERSION
6+
37
RUN apt update && \
48
apt install -y \
59
jq \
@@ -9,11 +13,11 @@ RUN apt update && \
913
RUN pip install pip --upgrade
1014
COPY . .
1115

12-
RUN pip install "feast[aws,gcp,snowflake,redis,go,mysql,postgres]"
16+
RUN pip install "feast[aws,gcp,snowflake,redis,go,mysql,postgres]==${VERSION}"
1317

1418
RUN apt update
1519
RUN apt install -y -V ca-certificates lsb-release wget
1620
RUN 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
1721
RUN apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
1822
RUN apt update
19-
RUN apt -y install libarrow-dev
23+
RUN apt -y install libarrow-dev

0 commit comments

Comments
 (0)