Skip to content

Commit

Permalink
Make a single command for zlib install
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-harrison committed Nov 11, 2024
1 parent d0ceff0 commit 02e7ab6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,12 @@ RUN curl -LO "https://dl.k8s.io/release/v${KUBE_VERSION}/bin/linux/amd64/kubectl
# while newer versions give faster reads of gz files.
ARG ZLIB_VERSION=1.3.1
RUN curl -L -o "/tmp/zlib.zip" "https://github.com/madler/zlib/releases/download/v${ZLIB_VERSION}/zlib${ZLIB_VERSION//./}.zip" && \
unzip /tmp/zlib.zip -d /tmp
WORKDIR /tmp/zlib-${ZLIB_VERSION}
RUN ./configure && \
make install
WORKDIR /
RUN rm -rf /tmp/zlib*

unzip /tmp/zlib.zip -d /tmp && \
cd /tmp/zlib-${ZLIB_VERSION} && \
./configure && \
make install && \
cd / && \
rm -rf /tmp/zlib*

# Workaround issue described here https://github.com/harrison-ai/cobalt-docker-coder-dev/issues/8
# Until Ubuntu upgrade.
Expand Down

0 comments on commit 02e7ab6

Please sign in to comment.