Skip to content

Instantly share code, notes, and snippets.

@pior
Created December 5, 2017 18:50
Show Gist options
  • Save pior/643d96eb0564023738ae79deb32de300 to your computer and use it in GitHub Desktop.
Save pior/643d96eb0564023738ae79deb32de300 to your computer and use it in GitHub Desktop.
Tensorflow lib in Docker
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"]
@pior
Copy link
Author

pior commented Dec 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment