-
Notifications
You must be signed in to change notification settings - Fork 808
/
Dockerfile
25 lines (19 loc) · 653 Bytes
/
Dockerfile
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
FROM python:3.11-bookworm
ARG USERNAME=llmware
ARG USER_UID=1000
ARG USER_GID=$USER_UID
ENV PYTHONPATH=/llmware
RUN apt-get update \
&& apt-get install -y git bash postgresql musl-dev \
&& pip install --no-cache-dir psycopg \
&& apk del --no-cache .build-deps
RUN git clone https://github.com/llmware-ai/llmware.git
RUN /llmware/scripts/dev/load_native_libraries.sh
RUN cd llmware/llmware && pip install -r requirements.txt
# Create the user
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
&& chown -R $USERNAME:$USER_GID /llmware
ENV PYTHONPATH=/llmware
WORKDIR /llmware
CMD /bin/bash