-
Notifications
You must be signed in to change notification settings - Fork 538
/
Copy pathDockerfile
43 lines (36 loc) · 865 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#---
# name: local_llm
# group: llm
# config: config.py
# depends: [nanodb, mlc, riva-client:python, jetson-inference, torch2trt, onnxruntime]
# requires: '>=34.1.0'
# docs: docs.md
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
WORKDIR /opt/local_llm/local_llm
ENV PYTHONPATH=${PYTHONPATH}:/opt/local_llm \
SSL_KEY=/etc/ssl/private/localhost.key.pem \
SSL_CERT=/etc/ssl/private/localhost.cert.pem
COPY requirements.txt .
RUN pip3 install --ignore-installed --no-cache-dir blinker && \
pip3 install --no-cache-dir --verbose -r requirements.txt && \
openssl req \
-new \
-newkey rsa:4096 \
-days 3650 \
-nodes \
-x509 \
-keyout ${SSL_KEY} \
-out ${SSL_CERT} \
-subj '/CN=localhost'
COPY *.py ./
COPY agents agents
COPY chat chat
COPY models models
COPY plugins plugins
COPY test test
COPY utils utils
COPY vision vision
COPY web web
WORKDIR /