-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathDockerfile
More file actions
81 lines (65 loc) · 2.06 KB
/
Copy pathDockerfile
File metadata and controls
81 lines (65 loc) · 2.06 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
FROM huggingface/transformers-pytorch-gpu:4.28.1
ENV LANG C.UTF-8
RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
PIP_INSTALL="python3 -m pip --no-cache-dir install" && \
GIT_CLONE="git clone --depth 10" && \
rm -rf /var/lib/apt/lists/* \
/etc/apt/sources.list.d/cuda.list \
/etc/apt/sources.list.d/nvidia-ml.list && \
apt-get update && \
# ==================================================================
# tools
# ------------------------------------------------------------------
DEBIAN_FRONTEND=noninteractive $APT_INSTALL \
build-essential \
apt-utils \
ca-certificates \
wget \
git \
vim \
libssl-dev \
curl \
unzip \
unrar \
cmake \
sudo \
&& \
# ==================================================================
# Libraries
# ------------------------------------------------------------------
apt-get update && \
$PIP_INSTALL \
pandas \
matplotlib \
tqdm \
python-dotenv \
&& \
# ==================================================================
# jupyter
# ------------------------------------------------------------------
$PIP_INSTALL \
jupyter \
&& \
# ==================================================================
# jupyterlab
# ------------------------------------------------------------------
$PIP_INSTALL \
jupyterlab \
&& \
# ==================================================================
# LLM libraries
# ------------------------------------------------------------------
$PIP_INSTALL \
chromadb==0.3.21 \
llama-index==0.6.9 \
langchain \
sentence-transformers==2.2.2 \
&& \
# ==================================================================
# config & cleanup
# ------------------------------------------------------------------
ldconfig && \
apt-get clean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/* /tmp/* ~/*
EXPOSE 8888 6006