Skip to content

Commit c5aeddc

Browse files
committed
fixed offline env.
1 parent 0dfb826 commit c5aeddc

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,11 @@ RUN cd /tmp && \
155155
python3 setup.py install
156156

157157
WORKDIR /tmp
158-
COPY ./requirements.20.08.txt /tmp
159-
RUN python3 -m pip install --no-cache-dir -r requirements.20.08.txt && \
158+
COPY ./requirements.txt /tmp
159+
RUN python3 -m pip install --no-cache-dir -r requirements.txt && \
160160
python3 -m pip install --no-cache-dir tensorflow_model_analysis && \
161-
python3 -m pip install --no-cache-dir -I \
162-
sklearn && \
163-
rm -f /tmp/*.whl /tmp/requirements.20.08.txt
161+
python3 -m pip install --no-cache-dir -I sklearn && \
162+
rm -f /tmp/*.whl /tmp/requirements.txt
164163

165164
# install git-lfs
166165
WORKDIR /tmp
@@ -209,6 +208,8 @@ RUN jupyter nbextensions_configurator enable && \
209208
jupyter lab build
210209

211210
RUN apt autoclean && \
211+
sed -i 's/source \/usr\/local\/nvm\/nvm.sh//' /etc/bash.bashrc && \
212+
python3 -m pip uninstall -y tensorboard-plugin-wit && \
212213
rm -rf /var/lib/apt/lists/* && \
213214
rm -rf /root/.cache && \
214215
rm -rf /tmp/*
@@ -226,11 +227,11 @@ LABEL ai.backend.kernelspec="1" \
226227
ai.backend.resource.min.cpu="1" \
227228
ai.backend.resource.min.mem="1g" \
228229
ai.backend.resource.min.cuda.device=1 \
229-
v ai.backend.resource.min.cuda.shares=0.1 \
230+
ai.backend.resource.min.cuda.shares=0.1 \
230231
ai.backend.base-distro="ubuntu16.04" \
231232
ai.backend.runtime-type="python" \
232233
ai.backend.runtime-path="/usr/bin/python" \
233234
ai.backend.service-ports="ipython:pty:3000,jupyter:http:8080,jupyterlab:http:8090,vscode:http:8180,tensorboard:http:6006"
234-
RUN sed -i 's/source \/usr\/local\/nvm\/nvm.sh//' /etc/bash.bashrc
235+
235236
WORKDIR /home/work
236237
# vim: ft=dockerfile

0 commit comments

Comments
 (0)