forked from IQTLabs/snowglobe
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (30 loc) · 729 Bytes
/
Dockerfile
File metadata and controls
33 lines (30 loc) · 729 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
29
30
31
32
33
FROM nvidia/cuda:12.6.3-devel-ubuntu24.04
LABEL org.iqt.name="snowglobe"
RUN apt update && apt install -y \
python3 \
python3-pip \
python3-venv \
emacs \
less \
tree \
wget \
cmake \
git \
ninja-build
# User account
ARG username=snowglobe
ARG groupname=$username
ARG uid=1000
ARG gid=$uid
RUN deluser --remove-home ubuntu
RUN addgroup --gid $gid $groupname
RUN adduser --uid $uid --gid $gid --disabled-password $username
WORKDIR /home/$username
USER $username
# Install
COPY --chown=$uid:$gid . /home/$username
RUN python3 -m venv /home/$username/.venv
ENV PATH=/home/$username/.venv/bin:"$PATH"
RUN pip install cmake
RUN CMAKE_ARGS="-DGGML_CUDA=on" pip install .
RUN snowglobe_config