From ec60371b7c9f819c7c9706ed7b2381c610235a0b 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 | 16 ++++++++++++++++ 1 file changed, 16 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..0cdc4dd56 --- /dev/null +++ b/use_case_examples/deployment/cifar/build_docker_client_image.py @@ -0,0 +1,16 @@ +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()