Skip to content

Commit

Permalink
Merge pull request #26 from harrison-ai/add-zlib
Browse files Browse the repository at this point in the history
Adds zlib v1.3.1 into the base docker image
  • Loading branch information
vladimir-harrison authored Nov 11, 2024
2 parents 4d15091 + 02e7ab6 commit 9ea8944
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ RUN curl -LO "https://dl.k8s.io/release/v${KUBE_VERSION}/bin/linux/amd64/kubectl
chmod +x kubectl && \
mv kubectl /usr/local/bin

# zlib packed in ubuntu is of version 1.12.11,
# 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 && \
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.
RUN curl -L -o "/tmp/sudo.deb" https://github.com/sudo-project/sudo/releases/download/SUDO_1_9_14p3/sudo_1.9.14-4_ubu2004_amd64.deb && \
Expand Down

0 comments on commit 9ea8944

Please sign in to comment.