diff --git a/podman/deploy.py b/podman/deploy.py index d71822e..d8167a0 100755 --- a/podman/deploy.py +++ b/podman/deploy.py @@ -197,6 +197,9 @@ def main(): ) requirements_file = ADVLABDB_REPO_DIR / "requirements.txt" + container_cmd = ( + "\"gunicorn --bind 0.0.0.0:80 --workers 5 --log-file /volumes/logs/gunicorn.log 'run:create_app()'\"" + ) print("Creating AdvLabDB image.") commands = ( @@ -209,7 +212,7 @@ def main(): # Set the working directory of the container "buildah config --workingdir /volumes/repo builder", # Set the command that will run after starting the container - "buildah config --cmd 'gunicorn --bind 0.0.0.0:80 --workers 5 --log-file /volumes/logs/gunicorn.log run:create_app()' builder", + f"buildah config --cmd {container_cmd} builder", ) for command in commands: