Fix docker build and Update documentation (#685)

pull/687/head
Kaiwen Yuan 2023-01-22 17:54:41 -08:00 committed by GitHub
parent afe432b8c0
commit 39887a102e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -25,4 +25,5 @@ pip install -r docs/requirements.txt
```
# Set up with Dockder
comming soon
Please check the [docker folder](docker)

View File

@ -1,5 +1,8 @@
FROM nvidia/cuda:10.1-cudnn7-devel
# https://github.com/NVIDIA/nvidia-docker/issues/1632
RUN rm /etc/apt/sources.list.d/cuda.list
RUN rm /etc/apt/sources.list.d/nvidia-ml.list
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
python3-opencv ca-certificates python3-dev git wget sudo ninja-build
@ -12,8 +15,9 @@ RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER appuser
WORKDIR /home/appuser
# https://github.com/facebookresearch/detectron2/issues/3933
ENV PATH="/home/appuser/.local/bin:${PATH}"
RUN wget https://bootstrap.pypa.io/get-pip.py && \
RUN wget https://bootstrap.pypa.io/pip/3.6/get-pip.py && \
python3 get-pip.py --user && \
rm get-pip.py