Spaces:
Build error
Build error
Download Dockerfile from jason137/text-to-sql: direct link, hf CLI and curl.
- Browser
- Download file 597 Bytes
-
https://huggingface.co/spaces/jason137/text-to-sql/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/jason137/text-to-sql/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jason137/text-to-sql/resolve/main/Dockerfile
597 Bytes
| 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"] |