Skip to content

Commit 02abcaa

Browse files
authored
Merge pull request #154 from shashank3959/cherry-branch
Use TensorRT 20.03 as base container for builds
2 parents f8bea3b + 1a2eba2 commit 02abcaa

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

notebooks/Dockerfile.notebook

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
FROM nvcr.io/nvidia/pytorch:20.03-py3
1+
FROM nvcr.io/nvidia/tensorrt:20.03-py3
22

3-
RUN apt update && apt install curl gnupg
43
RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
54
RUN echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
65

@@ -10,6 +9,7 @@ RUN ln -s /usr/bin/bazel-3.3.1 /usr/bin/bazel
109
RUN pip install pillow==4.3.0
1110
RUN pip install torch==1.5.1
1211
RUN pip install torchvision==0.6.1
12+
RUN pip install notebook
1313

1414
COPY . /workspace/TRTorch
1515
RUN rm /workspace/TRTorch/WORKSPACE
@@ -19,6 +19,12 @@ WORKDIR /workspace/TRTorch
1919
RUN bazel build //:libtrtorch --compilation_mode opt
2020

2121
WORKDIR /workspace/TRTorch/py
22+
23+
# Locale is not set by default
24+
RUN apt update && apt install -y locales && locale-gen en_US.UTF-8
25+
ENV LANG en_US.UTF-8
26+
ENV LANGUAGE en_US:en
27+
ENV LC_ALL en_US.UTF-8
2228
RUN python3 setup.py install
2329

24-
WORKDIR /workspace/TRTorch/notebooks
30+
WORKDIR /workspace/TRTorch/notebooks

0 commit comments

Comments
 (0)