mirror of
https://github.com/docker/genai-stack.git
synced 2024-08-30 16:49:54 +03:00
22 lines
431 B
Docker
22 lines
431 B
Docker
FROM langchain/langchain
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
curl \
|
|
software-properties-common \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip install --upgrade -r requirements.txt
|
|
|
|
COPY api.py .
|
|
COPY utils.py .
|
|
COPY chains.py .
|
|
|
|
HEALTHCHECK CMD curl --fail http://localhost:8504
|
|
|
|
ENTRYPOINT [ "uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8504" ]
|