Guest User

Untitled

a guest
Nov 15th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. # install dependencies
  2. COPY Pipfile Pipfile.lock ./
  3.  
  4. # RUN set -x; \
  5. # pipenv install --system --verbose
  6. # こうやりたいけど、tensorflow-gpuよりpipenvで入るtensorflowが優先されてしまうのでNG
  7.  
  8. RUN set -x; \
  9. pipenv lock -r > requirements.txt; \
  10. sed -i.bak '/^tensorflow/d' requirements.txt; \
  11. sed -i.bak '/^tensorboard/d' requirements.txt; \
  12. pip --no-cache-dir install -r requirements.txt
  13. # pipenvからrequirements.txtを生成し、tensorflowだけ抜いて実行する
Add Comment
Please, Sign In to add comment