sql-gen / Dockerfile
h3110Fr13nd
dockerfile
f15297d
raw
history blame
472 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.12 python3-pip
COPY requirements.txt ./
RUN python3.12 -m pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python3.12", "ddl_query_generator.py"]