From 9e77a541d5223372ea0f0a45f4a12d6757cde393 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Thu, 25 Jan 2024 21:05:48 -0800 Subject: [PATCH] (ui) dockerfile --- ui/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/Dockerfile b/ui/Dockerfile index eac5a6c9e..97065943f 100644 --- a/ui/Dockerfile +++ b/ui/Dockerfile @@ -1,5 +1,7 @@ # Use official Python base image -FROM python:3.9 +FROM python:3.9.12 + +EXPOSE 8501 # Set the working directory in the container WORKDIR /app @@ -11,7 +13,8 @@ COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the entire project directory to the container -COPY . . +COPY admin.py . # Set the entrypoint command to run admin.py with Streamlit -ENTRYPOINT ["streamlit", "run", "admin.py"] \ No newline at end of file +ENTRYPOINT [ "streamlit", "run"] +CMD ["admin.py"] \ No newline at end of file