forked from mirzaim/cuda-devcontainer
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·39 lines (29 loc) · 921 Bytes
/
Dockerfile
File metadata and controls
executable file
·39 lines (29 loc) · 921 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
34
35
36
37
38
39
ARG VARIANT="ubuntu22.04"
ARG CUDA_VERSION="12.4.1"
FROM nvidia/cuda:${CUDA_VERSION}-devel-${VARIANT}
# # set non interactive mode
ARG DEBIAN_FRONTEND=noninteractive
# # install dependencies to build python packages
RUN apt-get update && apt-get install -y --no-install-recommends \
libcairo2-dev \
pkg-config \
python3-dev \
git \
curl \
bash-completion \
ssh \
vim \
tmux \
htop
COPY config/.tmux.conf /root/.tmux.conf
# Download the latest installer
ADD https://astral.sh/uv/install.sh /uv-installer.sh
# Run the installer then remove it
RUN sh /uv-installer.sh && rm /uv-installer.sh
# Ensure the installed binary is on the `PATH`
ENV PATH="/root/.local/bin/:$PATH"
# add your own dependencies here!
# RUN apt-get update && apt-get install -y --no-install-recommends \
# [your-own-dependencies] \
# set DEBIAN_FRONTEND back to dialog
ARG DEBIAN_FRONTEND=dialog