Skip to content

Commit

Permalink
Upgrade cmake version (ubuntu-20.04)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfxuan committed Apr 26, 2024
1 parent df96e08 commit 05c9908
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG UBUNTU_VERSION=22.04

FROM ubuntu:${UBUNTU_VERSION}

ARG UBUNTU_VERSION=22.04
ARG UBUNTU_VERSION
ARG TORCH_VERSION=2.2.1
ARG CUDA_VERSION=12.1.1
ARG TORCH_CUDA_ARCH_LIST=7.0;7.5
Expand All @@ -19,6 +19,11 @@ WORKDIR /code
# Copy everything
COPY . ./

# Upgrade cmake if Ubuntu version is 20.04
RUN if [[ "$UBUNTU_VERSION" = "20.04" ]]; then \
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal-rc main' | tee -a /etc/apt/sources.list.d/kitware.list >/dev/null; \
fi

# Install build dependencies
RUN apt-get update && \
apt-get install -y \
Expand Down

0 comments on commit 05c9908

Please sign in to comment.