jason137 commited on
Commit
6b5b3d8
·
1 Parent(s): 3f30cc6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:latest
2
+ WORKDIR /app
3
+
4
+ RUN apt-get update \
5
+ && apt-get install sqlite3 \
6
+ && apt-get install git
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 .
14
+
15
+ RUN sqlite3 -init Chinook_Sqlite.sql Chinook.db ""
16
+
17
+ COPY script.py .
18
+ RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
19
+
20
+ CMD ["python", "script.py"]