Skip to content

Commit 5803bcd

Browse files
Modify dockerfile to use latest cmake on ubuntu18.04 docker image. (#160)
Summary: As title; by default the image seems to have cmake3.10. This change should update cmake to latest version (3.19+ ideally). Pull Request resolved: #160 Reviewed By: PaliC Differential Revision: D39289650 Pulled By: anirbanr-fb-r2p fbshipit-source-id: 607056b2f85e5b45b3573e5e22d080e9a0369cc7
1 parent 0d37f1f commit 5803bcd

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Dockerfile

+9-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ RUN --mount=type=cache,id=apt-dev,target=/var/cache/apt \
88
build-essential \
99
ca-certificates \
1010
ccache \
11-
cmake \
1211
curl \
1312
wget \
1413
git \
@@ -33,10 +32,16 @@ RUN --mount=type=cache,id=apt-dev,target=/var/cache/apt \
3332
tix-dev \
3433
libgtest-dev \
3534
tk-dev \
36-
libsqlite3-dev && \
35+
libsqlite3-dev \
36+
apt-transport-https \
37+
ca-certificates \
38+
gnupg \
39+
software-properties-common && \
40+
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - && \
41+
apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && \
3742
echo "deb http://security.ubuntu.com/ubuntu focal-security main" >> /etc/apt/sources.list && \
3843
apt update && \
39-
apt install -y binutils && \
44+
apt install -y binutils cmake && \
4045
rm -rf /var/lib/apt/lists/*
4146
RUN /usr/sbin/update-ccache-symlinks
4247
RUN mkdir /opt/ccache && ccache --set-config=cache_dir=/opt/ccache
@@ -55,7 +60,7 @@ RUN curl -fsSL -v -o ~/miniconda.sh -O https://repo.anaconda.com/miniconda/Mini
5560
chmod +x ~/miniconda.sh && \
5661
~/miniconda.sh -b -p /opt/conda && \
5762
rm ~/miniconda.sh && \
58-
/opt/conda/bin/conda install -y python=${PYTHON_VERSION} cmake mkl mkl-include conda-build pyyaml numpy ipython && \
63+
/opt/conda/bin/conda install -y python=${PYTHON_VERSION} mkl mkl-include conda-build pyyaml numpy ipython && \
5964
/opt/conda/bin/conda install -y -c conda-forge libpython-static=${PYTHON_VERSION} && \
6065
/opt/conda/bin/conda install -y pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch-nightly && \
6166
/opt/conda/bin/conda clean -ya

0 commit comments

Comments
 (0)