Skip to content

Commit

Permalink
chore: add docker build python script to cifar deployment
Browse files Browse the repository at this point in the history
closes #936
  • Loading branch information
jfrery committed Oct 31, 2024
1 parent 4829444 commit ec60371
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions use_case_examples/deployment/cifar/build_docker_client_image.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit ec60371

Please sign in to comment.