Spaces:
Runtime error
Runtime error
Download Dockerfile from h3110Fr13nd/sql-gen: direct link, hf CLI and curl.
- Browser
- Download file 743 Bytes
-
https://huggingface.co/spaces/h3110Fr13nd/sql-gen/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/h3110Fr13nd/sql-gen/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/h3110Fr13nd/sql-gen/resolve/main/Dockerfile
743 Bytes
| FROM ollama/ollama as ollama | |
| RUN ollama serve & sleep 5 && ollama pull pxlksr/defog_sqlcoder-7b-2:Q4_K | |
| ENV HOME=/home | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y software-properties-common | |
| RUN add-apt-repository -y ppa:deadsnakes/ppa && apt-get update && apt-get install -y python3.11 python3-pip python3-distutils | |
| WORKDIR /home | |
| COPY requirements.txt ./ | |
| RUN python3.11 -m pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| ENTRYPOINT ["/bin/sh"] | |
| ENV FLASK_APP=ddl_query_generator.py | |
| # RUN python3.11 ddl_query_generator.py | |
| # | |
| EXPOSE 7860 | |
| CMD ["/usr/bin/python3.11", "flask", "run", "--host=0.0.0.0", "--port=7860"] | |
| # CMD ["/usr/bin/python3.11", "ddl_query_generator.py"] | |
| # flask run ddl_query_generator.py | |