Created
December 5, 2017 18:50
-
-
Save pior/643d96eb0564023738ae79deb32de300 to your computer and use it in GitHub Desktop.
Tensorflow lib in Docker
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 golang:1.9 | |
ENV LANG=en_US.utf8 | |
RUN apt-get update && apt-get install -y curl git build-essential | |
RUN curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.4.0.tar.gz" \ | |
| tar -xzC /usr/local && \ | |
ldconfig | |
WORKDIR /app | |
ADD tf-test.go /app | |
RUN go get github.com/tensorflow/tensorflow/tensorflow/go && \ | |
go build tf-test.go | |
ENTRYPOINT ["/bin/bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.tensorflow.org/install/install_go