Skip to content

Commit

Permalink
Merge pull request #1637 from AdeelH/backport-docker_build_fix
Browse files Browse the repository at this point in the history
[BACKPORT] Fix docker build errors
  • Loading branch information
AdeelH authored Dec 29, 2022
2 parents 295e13d + e595470 commit 4ac849e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM nvidia/cuda:${CUDA_VERSION}-cudnn8-runtime-ubuntu${UBUNTU_VERSION}
# ImportError: libGL.so.1: cannot open shared object file: No such file or directory
# See https://stackoverflow.com/questions/55313610/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directo
RUN apt-get update && \
apt-get install -y wget=1.* build-essential libgl1 && \
apt-get install -y wget=1.* build-essential libgl1 curl && \
apt-get autoremove && apt-get autoclean && apt-get clean

ARG PYTHON_VERSION=3.9
Expand All @@ -19,10 +19,14 @@ RUN case ${TARGETPLATFORM} in \
*) LINUX_ARCH=x86_64 ;; \
esac && echo ${LINUX_ARCH} > /root/linux_arch

# needed for jupyter lab extensions
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get install -y nodejs

# Install Python and conda
RUN wget -q -O ~/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-$(cat /root/linux_arch).sh && \
chmod +x ~/miniconda.sh && \
~/miniconda.sh -b -p /opt/conda && \
bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh
ENV PATH /opt/conda/bin:$PATH
ENV LD_LIBRARY_PATH /opt/conda/lib/:$LD_LIBRARY_PATH
Expand All @@ -40,10 +44,6 @@ ENV GDAL_DATA=/opt/conda/lib/python${PYTHON_VERSION}/site-packages/rasterio/gdal
RUN rm /opt/conda/lib/libtinfo.so.6 && \
ln -s /lib/$(cat /root/linux_arch)-linux-gnu/libtinfo.so.6 /opt/conda/lib/libtinfo.so.6

# needed for jupyter lab extensions
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get install -y nodejs

WORKDIR /opt/src/

COPY ./requirements-dev.txt /opt/src/requirements-dev.txt
Expand Down

0 comments on commit 4ac849e

Please sign in to comment.