jason137 commited on
Commit
b495c25
·
1 Parent(s): 22d7153

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -7,7 +7,8 @@ RUN apt-get update \
7
 
8
  RUN pip install --upgrade --no-cache-dir pip \
9
  && pip install --upgrade --no-cache-dir langchain \
10
- && pip install --upgrade --no-cache-dir openai
 
11
 
12
  RUN git clone https://github.com/lerocha/chinook-database.git \
13
  && cp chinook-database/ChinookDatabase/DataSources/Chinook_Sqlite.sql .
@@ -17,4 +18,4 @@ RUN sqlite3 -init Chinook_Sqlite.sql Chinook.db ""
17
  COPY script.py .
18
  RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
19
 
20
- CMD ["python", "script.py"]
 
7
 
8
  RUN pip install --upgrade --no-cache-dir pip \
9
  && pip install --upgrade --no-cache-dir langchain \
10
+ && pip install --upgrade --no-cache-dir openai \
11
+ && pip install --upgrade --no-cache-dir streamlit
12
 
13
  RUN git clone https://github.com/lerocha/chinook-database.git \
14
  && cp chinook-database/ChinookDatabase/DataSources/Chinook_Sqlite.sql .
 
18
  COPY script.py .
19
  RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
20
 
21
+ CMD ["streamlit", "run", "script.py"]