-
Notifications
You must be signed in to change notification settings - Fork 160
/
Dockerfile
29 lines (20 loc) · 917 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ARG BASEIMAGE=nvidia/cuda:11.3.1-cudnn8-devel-ubuntu20.04
FROM ${BASEIMAGE}
ARG DISC_HOST_TF_VERSION=""
ENV DISC_HOST_TF_VERSION="${DISC_HOST_TF_VERSION}"
ARG PYTHON_VERSION=PYTHON3.8
ENV PYTHON_VERSION=${PYTHON_VERSION}
ENV DEBIAN_FRONTEND noninteractive
ARG ENABLE_FIND_FASTEST_APT_SOURCE=ON
ENV ENABLE_FIND_FASTEST_APT_SOURCE=${ENABLE_FIND_FASTEST_APT_SOURCE}
COPY docker/scripts /install/scripts
RUN bash /install/scripts/find-fastest-apt.sh
RUN apt-get update -y && apt-get install -y git curl vim libssl-dev wget unzip openjdk-11-jdk patchelf
RUN bash /install/scripts/install-cmake.sh
RUN bash /install/scripts/install-bazel.sh
RUN bash /install/scripts/install-python.sh
ARG DEVICE=cu113
RUN bash /install/scripts/install-tensorrt.sh
RUN bash /install/scripts/install-cudnn.sh
ENV PATH="/opt/cmake/bin:${PATH}"
ENV LD_LIBRARY_PATH="/usr/local/TensorRT/lib/:/usr/local/cuda/lib64/:${LD_LIBRARY_PATH}"