Skip to content

Commit

Permalink
Add CPU dockerfile and prevent tensorflow-gpu being overwritten
Browse files Browse the repository at this point in the history
  • Loading branch information
madisonmay committed Feb 15, 2019
1 parent 19327c1 commit 5db0733
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions Dockerfile.cpu
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM tensorflow/tensorflow:1.12.0-py3

ENV LANG=C.UTF-8
RUN apt-get update && mkdir /gpt-2
ADD requirements.txt /gpt-2/requirements.txt
RUN pip3 install -r /gpt-2/requirements.txt

WORKDIR /gpt-2
ADD . /gpt-2

CMD ["sleep", "infinity"]
6 changes: 3 additions & 3 deletions Dockerfile → Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ ENV NVIDIA_VISIBLE_DEVICES=all \
NVIDIA_REQUIRE_CUDA="cuda>=8.0" \
LANG=C.UTF-8

RUN apt-get update && mkdir /gpt-2
ADD requirements.txt /gpt-2/requirements.txt
RUN pip3 install -r /gpt-2/requirements.txt
RUN apt-get update && \
mkdir /gpt-2 && \
pip3 install fire==0.1.3 regex==2017.4.5

WORKDIR /gpt-2
ADD . /gpt-2
Expand Down

0 comments on commit 5db0733

Please sign in to comment.