forked from solivr/tf-crnn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Dockerfile and Docker running documentation
- Loading branch information
1 parent
01f43a4
commit 6f0723e
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM tensorflow/tensorflow:1.7.0-gpu | ||
|
||
# Python version | ||
RUN python -v | ||
|
||
# Additional requirements from Tensorflow | ||
RUN apt-get update && apt-get install -y python3 python3-dev | ||
|
||
# Clean up Python 3 install | ||
RUN curl -O https://bootstrap.pypa.io/get-pip.py && \ | ||
python3 get-pip.py && \ | ||
rm get-pip.py | ||
|
||
# Install tensorflow 1.7 | ||
RUN pip3 install tensorflow-gpu==1.7.0 ipython notebook | ||
|
||
# Copy and install TF-CRNN | ||
ADD . /script | ||
WORKDIR /script | ||
RUN python3 setup.py install | ||
|
||
# Add an additional sources directory | ||
# You should normalize the filepath in your data | ||
VOLUME /sources | ||
VOLUME /config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters