Skip to content

Commit b0e1a21

Browse files
committed
fixed offline env.
1 parent c5aeddc commit b0e1a21

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

vendor/ngc-tensorflow/Dockerfile.20.11-tf2-py3

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ RUN python3 -m pip install --no-cache-dir \
147147
matplotlib==3.1.1
148148

149149
WORKDIR /tmp
150-
COPY ./requirements.20.08.txt /tmp
151-
RUN python3 -m pip install --no-cache-dir --upgrade -r requirements.20.08.txt && \
150+
COPY ./requirements.txt /tmp
151+
RUN python3 -m pip install --no-cache-dir --upgrade -r requirements.txt && \
152152
python3 -m pip install --no-cache-dir tensorflow_model_analysis && \
153-
rm -f /tmp/*.whl /tmp/requirements.20.08.txt
153+
rm -f /tmp/*.whl /tmp/requirements.txt
154154

155155
# install git-lfs
156156
WORKDIR /tmp
@@ -181,6 +181,8 @@ RUN jupyter nbextensions_configurator enable && \
181181
jupyter lab build
182182

183183
RUN apt autoclean && \
184+
sed -i 's/source \/usr\/local\/nvm\/nvm.sh//' /etc/bash.bashrc && \
185+
python3 -m pip uninstall -y tensorboard-plugin-wit && \
184186
rm -rf /var/lib/apt/lists/* && \
185187
rm -rf /root/.cache && \
186188
rm -rf /tmp/*
@@ -203,6 +205,6 @@ LABEL ai.backend.kernelspec="1" \
203205
ai.backend.runtime-type="python" \
204206
ai.backend.runtime-path="/usr/bin/python" \
205207
ai.backend.service-ports="ipython:pty:3000,jupyter:http:8080,jupyterlab:http:8090,vscode:http:8180,tensorboard:http:6006"
206-
RUN sed -i 's/source \/usr\/local\/nvm\/nvm.sh//' /etc/bash.bashrc
208+
207209
WORKDIR /home/work
208210
# vim: ft=dockerfile

0 commit comments

Comments
 (0)