Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Create Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Limess authored Sep 5, 2021
1 parent 3ee6a2f commit 48e4d7e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
python_version = 3.7.11
pip_version = 21.2.4
poetry_version = 1.1.8

.PHONY: build-tensorflow
build-tensorflow:
# disable buildkit as it limits the log lines: [output clipped, log limit 1MiB reached]
@DOCKER_BUILDKIT=0 docker build -t signal-tensorflow \
--build-arg PYTHON_VERSION=$(python_version) \
--build-arg OVERRIDE_PIP_VERSION=$(pip_version) \
--cpuset-cpus="0-$$(($$(nproc) - 1))" \
--progress plain \
--file dev/tensorflow/Dockerfile.tensorflow \
dev/tensorflow
export id=$$(docker create signal-tensorflow-tensorflow) \
&& docker cp $$id:/tmp/tensorflow_pkg dev/tensorflow/tensorflow_pkg \
&& docker rm $$id

0 comments on commit 48e4d7e

Please sign in to comment.