https://github.com/jackkweyunga/docker-tensorflow
Experimenting faster and effecient docker builds for projects using tensorflow.
https://github.com/jackkweyunga/docker-tensorflow
Last synced: 6 months ago
JSON representation
Experimenting faster and effecient docker builds for projects using tensorflow.
- Host: GitHub
- URL: https://github.com/jackkweyunga/docker-tensorflow
- Owner: jackkweyunga
- Created: 2024-01-18T03:48:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T15:31:15.000Z (over 2 years ago)
- Last Synced: 2025-06-11T22:49:39.041Z (about 1 year ago)
- Language: Dockerfile
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Experimenting faster and effecient docker builds for projects including tensorflow ( which is large ).
## Using Tensorflow Docker Image with GPU
REF: https://www.tensorflow.org/install/docker
## Method 1 (Not recommended)
Manual installation of tensorflow as a python package.
- Not implemented
## Method 2 (Recommended)
Using docker hub tensorflow docker images as base images.
Example:
```dockerfile
FROM tensorflow/tensorflow:latest-gpu
# Add your application here
```
REF: https://hub.docker.com/r/tensorflow/tensorflow/
Tested tags:
- [latest tag](./tensor-flow-base-images/latest/)
- [latest gpu tag](./tensor-flow-base-images/latest-gpu/)
- [nightly tag](./tensor-flow-base-images/nightly/)
- [nightly gpu tag](./tensor-flow-base-images/nightly-gpu/)
# Limitations
- The base images are large. So, the final image size will be large.
- The base images are large. So, the builds will take reasonable time.
- The base images are large. So, the docker hub pulls will take reasonable time.
- No application is added to the base images. So, build time may vary depending on the application.
# Observations
- Using docker hub tensorflow images as base images is fast ( Not tested Manual installation of tensorflow as a python package. ). Since the base images are already built and available in docker hub. Builds take reasonable time.
- [latest tag](./tensor-flow-base-images/latest/)
- 37s
- [latest gpu tag](./tensor-flow-base-images/latest-gpu/)
- 1m 0s
- [nightly tag](./tensor-flow-base-images/nightly/)
- 24s
- [nightly gpu tag](./tensor-flow-base-images/nightly-gpu/)
- 1m 7s
# Disclaimer
- All runs are done in Github Actions.