BA-Chatbot/model_service/Dockerfile

20 lines
446 B
Docker

# syntax=docker/dockerfile:1
FROM python:3.10.12-slim
WORKDIR /home/user/
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
COPY requirements.txt requirements.txt
RUN apt-get update && apt-get install -y\
pkg-config \
cmake \
g++ \
poppler-utils && \
rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
COPY app.py .
COPY embeddings/ embeddings/
COPY gptq.py .
COPY openai_models.py .