Skip to content

Commit

Permalink
Fixes a bug in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
keisen committed May 20, 2021
1 parent 03844f7 commit 08a9415
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
9 changes: 3 additions & 6 deletions dockerfiles/cpu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ RUN export JUPYTER_HOME=/etc/jupyter && \
{'shell_command': ['/bin/bash']}" >> $JUPYTER_CONF

# Install essential python libraries
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir --upgrade setuptools && \
pip install --no-cache-dir && \
tf-keras-vis[develop,examples]==$TF_KERAS_VIS_VERSION && \
jupyterlab==2.*
RUN pip install --no-cache-dir \
tf-keras-vis[develop,examples]==$TF_KERAS_VIS_VERSION

CMD [ "jupyter", "lab" ]
CMD jupyter lab
10 changes: 3 additions & 7 deletions dockerfiles/gpu.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM tensorflow/tensorflow:2.4.1-gpu

# Default ENV Settings
ARG TF_KERAS_VIS_VERSION=0.6.0
ARG JUPYTER_ALLOW_IP="0.0.0.0"
ARG JUPYTER_TOKEN=""
Expand All @@ -17,10 +16,7 @@ RUN export JUPYTER_HOME=/etc/jupyter && \
{'shell_command': ['/bin/bash']}" >> $JUPYTER_CONF

# Install essential python libraries
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir --upgrade setuptools && \
pip install --no-cache-dir && \
tf-keras-vis[develop,examples]==$TF_KERAS_VIS_VERSION && \
jupyterlab==2.*
RUN pip install --no-cache-dir \
tf-keras-vis[develop,examples]==$TF_KERAS_VIS_VERSION

CMD [ "jupyter", "lab"]
CMD jupyter lab

0 comments on commit 08a9415

Please sign in to comment.