Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove TensorFlow source codes after building go modules #2289

Closed

Conversation

workingloong
Copy link
Collaborator

Fix #2243

@workingloong workingloong deleted the remove_tf_repo branch September 9, 2020 02:10
@egolearner
Copy link

It's necessary to run git clone and rm in the same RUN command to keep image small.

ENV TF_PATH /tmp/tensorflow
RUN cd /tmp \
        && git clone --depth=1 --branch v2.2.0-rc0 \
        https://github.com/tensorflow/tensorflow && mv xxx.proto some_dir && rm -rf /tmp/tensorflow/xxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

It is redundant to git clone TensorFlow repo.
2 participants