forked from diffbot/diffbot-llm-inference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 700 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM vllm/vllm-openai:latest
# Install required packages
RUN apt-get update && apt-get install -y \
supervisor \
&& apt-get clean
# Copy Supervisor configuration
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Copy diffbot-llm code
COPY . /code
WORKDIR /code
# Install requirements
RUN pip install poetry
RUN pip install poetry-plugin-export
RUN pip install pyasynchat # required by supervisord
RUN poetry env use python3.10
RUN poetry export -f requirements.txt --output requirements.txt --without-hashes
RUN poetry run pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Expose ports
EXPOSE 3333 8000
# Start Supervisor
ENTRYPOINT ["/usr/bin/supervisord"]