File size: 597 Bytes
6b5b3d8
 
 
 
284508e
 
6b5b3d8
5fb1324
 
6b5b3d8
a96b6e9
6b5b3d8
 
 
 
 
 
 
 
 
3905b4a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:latest
WORKDIR /app

RUN apt-get update \
    && apt-get install -y sqlite3 \
    && apt-get install -y git

COPY requirements.txt .

RUN pip install --upgrade --no-cache-dir pip \
    && pip install --upgrade --no-cache-dir -r requirements.txt

RUN git clone https://github.com/lerocha/chinook-database.git \
    && cp chinook-database/ChinookDatabase/DataSources/Chinook_Sqlite.sql .

RUN sqlite3 -init Chinook_Sqlite.sql Chinook.db ""

COPY script.py .
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true

CMD ["streamlit", "run", "script.py", "--server.port", "7860"]