Skip to content

Commit

Permalink
dockerfile cleanup, reduce image size
Browse files Browse the repository at this point in the history
Signed-off-by: Tommy Hughes <[email protected]>
  • Loading branch information
tchughesiv committed Nov 21, 2024
1 parent ec13e82 commit 8d70e82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN apt update && apt install -y -V ca-certificates lsb-release wget && \
apt install -y \
jq \
libarrow-dev && \
npm install -g yarn && \
apt remove -y lsb-release wget && \
apt-get clean && rm -rf /var/cache/apt/lists

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.11-slim-bullseye
RUN pip install --no-cache-dir pip --upgrade
RUN pip install --no-cache-dir pip-tools

RUN apt update && apt install -y -V ca-certificates lsb-release wget make git && \
RUN apt update && apt install -y -V ca-certificates lsb-release wget make git npm && \
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 \
Expand All @@ -13,6 +13,10 @@ RUN apt update && apt install -y -V ca-certificates lsb-release wget make git &&
apt-get clean && rm -rf /var/cache/apt/lists

COPY . .
WORKDIR /ui
RUN yarn install && yarn build:lib

WORKDIR /
RUN make install-python build-ui

# modify permissions to support running with a random uid
Expand Down

0 comments on commit 8d70e82

Please sign in to comment.