exclude dockerfile from .gitignore

This commit is contained in:
plucky 2018-12-26 09:56:59 +08:00
commit fc28b41360
2 changed files with 16 additions and 1 deletions

1
.gitignore vendored
View file

@ -13,3 +13,4 @@
!models !models
!nnlib !nnlib
!utils !utils
!Dockerfile*

14
Dockerfile.cpu Normal file
View file

@ -0,0 +1,14 @@
FROM tensorflow/tensorflow:latest-py3
RUN apt-get update -qq -y \
&& apt-get install -y libsm6 libxrender1 libxext-dev python3-tk\
&& apt-get install -y git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY requirements-cpu-docker.txt /opt/
RUN pip3 install cmake
RUN pip3 --no-cache-dir install -r /opt/requirements-cpu-docker.txt && rm /opt/requirements-cpu-docker.txt
WORKDIR "/notebooks"
CMD ["/run_jupyter.sh", "--allow-root"]