From edf566cfce0028e290308da2f26f2790a3f1d9b5 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Fri, 18 Oct 2024 12:26:35 +0000 Subject: [PATCH] Update the entrypoint to start app Dockerfile updated to execute the app on start. Change-Id: Ifb7fefebeabff7e798ecde39299df81e3870e36b Signed-off-by: subhash kumar singh --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b18ea00..b41b81b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ FROM python:3.10 # location in the container -ENV TA_DIR /home/app/ +ENV TA_DIR /home/app WORKDIR ${TA_DIR} # Install dependencies @@ -37,6 +37,9 @@ RUN pip3 install /SDK/modelmetricssdk_main/. RUN pip3 install . RUN pip3 install -r requirements.txt +WORKDIR ${TA_DIR}/trainingmgr + +CMD ["python3", "trainingmgr_main.py"] #Expose the ports EXPOSE 5050 -- 2.16.6