From d689cb6550e2226ea6d886638df89cd85c2f8131 Mon Sep 17 00:00:00 2001 From: jfrery Date: Thu, 31 Oct 2024 16:05:42 +0100 Subject: [PATCH] chore: add docker build python script to cifar deployment closes https://github.com/zama-ai/concrete-ml/issues/936 --- .../cifar/build_docker_client_image.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 use_case_examples/deployment/cifar/build_docker_client_image.py diff --git a/use_case_examples/deployment/cifar/build_docker_client_image.py b/use_case_examples/deployment/cifar/build_docker_client_image.py new file mode 100644 index 000000000..18f1e752c --- /dev/null +++ b/use_case_examples/deployment/cifar/build_docker_client_image.py @@ -0,0 +1,18 @@ +import os +import subprocess +from pathlib import Path + + +def main(): + path_of_script = Path(__file__).parent.resolve() + # Build image + os.chdir(path_of_script) + command = ( + f'docker build --tag cml_client_cifar --file "{path_of_script}/Dockerfile.client" .' + ) + print(command) + subprocess.check_output(command, shell=True) + + +if __name__ == "__main__": + main()