Skip to content

Commit 0dfb826

Browse files
committed
change to offline env.
1 parent 396c19c commit 0dfb826

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

vendor/ngc-pytorch/Dockerfile.20.11-py3

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ RUN cd /tmp && \
157157
python3 setup.py install
158158

159159
WORKDIR /tmp
160-
COPY ./requirements.20.08.txt /tmp
161-
RUN /opt/conda/bin/python3 -m pip install --no-cache-dir --ignore-installed -r requirements.20.08.txt && \
160+
COPY ./requirements.txt /tmp
161+
RUN /opt/conda/bin/python3 -m pip install --no-cache-dir --ignore-installed -r requirements.txt && \
162162
/opt/conda/bin/python3 -m pip install --no-cache-dir tensorflow_model_analysis && \
163-
rm -f /tmp/*.whl /tmp/requirements.20.08.txt
163+
rm -f /tmp/*.whl /tmp/requirements.txt
164164

165165
# install git-lfs
166166
WORKDIR /tmp
@@ -221,6 +221,8 @@ RUN jupyter nbextensions_configurator enable && \
221221
jupyter lab build
222222

223223
RUN apt autoclean && \
224+
sed -i 's/source \/usr\/local\/nvm\/nvm.sh//' /etc/bash.bashrc && \
225+
python3 -m pip uninstall -y tensorboard-plugin-wit && \
224226
rm -rf /var/lib/apt/lists/* && \
225227
rm -rf /root/.cache && \
226228
rm -rf /tmp/*
@@ -245,6 +247,6 @@ LABEL ai.backend.kernelspec="1" \
245247
ai.backend.runtime-path="/opt/conda/bin/python3" \
246248
ai.backend.service-ports="ipython:pty:3000,jupyter:http:8080,jupyterlab:http:8090,vscode:http:8180,tensorboard:http:6006"
247249

248-
RUN sed -i 's/source \/usr\/local\/nvm\/nvm.sh//' /etc/bash.bashrc
250+
249251
WORKDIR /home/work
250252
# vim: ft=dockerfile

0 commit comments

Comments
 (0)