assistance-engine/Dockerfile

39 lines
783 B
Docker

FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
libpq-dev \
protobuf-compiler \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir \
langchain==0.1.0 \
langfuse>=2.0.0 \
langgraph \
langchain-openai \
langchain-elasticsearch \
grpcio \
grpcio-tools \
psycopg2-binary \
pydantic
COPY ./protos ./protos
COPY . .
RUN python -m grpc_tools.protoc \
--proto_path=./protos \
--python_out=./src \
--grpc_python_out=./src \
./protos/brunix.proto
EXPOSE 50051
#CMD ["tail", "-f", "/dev/null"]
CMD ["python", "src/server.py"]