Created
July 17, 2018 21:42
-
-
Save balajismaniam/a1919010fe9081ca37a6e1e7b01f02e3 to your computer and use it in GitHub Desktop.
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
FROM python:3.6.4-slim-stretch | |
RUN apt-get update && apt-get install -y build-essential git time | |
RUN pip install https://anaconda.org/intel/tensorflow/1.6.0/download/tensorflow-1.6.0-cp36-cp36m-linux_x86_64.whl | |
RUN git clone https://github.com/tensorflow/models.git | |
ENV PYTHONPATH $PYTHONPATH:$HOME/models | |
WORKDIR $HOME/models/official/resnet/ | |
RUN pip3 install -r ../requirements.txt | |
RUN python ./cifar10_download_and_extract.py | |
ENTRYPOINT python ./cifar10_main.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error while building docker image.
Step 8/9 : RUN python ./cifar10_download_and_extract.py
---> Running in fbe9bb9b3685
Traceback (most recent call last):
File "./cifar10_download_and_extract.py", line 63, in
tf.compat.v1.app.run(argv=[sys.argv[0]] + unparsed)
AttributeError: module 'tensorflow.python.util.compat' has no attribute 'v1'
The command '/bin/sh -c python ./cifar10_download_and_extract.py' returned a non-zero code: 1