BA-Chatbot/model_service/Dockerfile

20 lines
446 B
Docker
Raw Permalink Normal View History

2023-11-15 14:28:48 +01:00
# 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 .