-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dockerfile cleanup, reduce image size
Signed-off-by: Tommy Hughes <[email protected]>
- Loading branch information
1 parent
3331fa7
commit 1408003
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
14 changes: 6 additions & 8 deletions
14
sdk/python/feast/infra/feature_servers/multicloud/Dockerfile.dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
FROM python:3.11-slim-bullseye | ||
|
||
RUN apt update && apt install -y make git | ||
RUN pip install --no-cache-dir pip --upgrade | ||
RUN pip install --no-cache-dir pip-tools | ||
|
||
COPY . . | ||
|
||
RUN make install-python | ||
|
||
RUN apt update && apt install -y -V ca-certificates lsb-release wget && \ | ||
RUN apt update && apt install -y -V ca-certificates lsb-release wget make git && \ | ||
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 && \ | ||
apt install -y \ | ||
jq \ | ||
libarrow-dev && \ | ||
apt remove -y lsb-release wget && \ | ||
apt remove -y lsb-release wget make git && \ | ||
apt-get clean && rm -rf /var/cache/apt/lists | ||
|
||
COPY . . | ||
RUN make install-python | ||
|
||
# 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 | ||
# RUN chmod g+w $(python3 -c "import feast.ui as _; print(_.__path__)" | tr -d "[']")/build/projects-list.json |