Skip to content

Commit

Permalink
Support readonly filesystem for Keras config
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdcha committed Feb 1, 2016
1 parent 05f23fa commit f02c918
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ RUN python -c "from keras.models import Sequential" && \
# Switch to TF backend
sed -i 's/theano/tensorflow/' /.keras/keras.json && \
# Re-run it to flush any more disk writes
python -c "from keras.models import Sequential; from keras import backend; print(backend._BACKEND)"
python -c "from keras.models import Sequential; from keras import backend; print(backend._BACKEND)" && \
# Keras reverts to /tmp from ~ when it detects a read-only file system
mkdir -p /tmp/.keras && cp /.keras/keras.json /tmp/.keras


# More packages: (please add new pip installs here)
RUN pip install --upgrade mpld3 && \
Expand Down

0 comments on commit f02c918

Please sign in to comment.