-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathbase.dockerfile
More file actions
38 lines (31 loc) · 882 Bytes
/
Copy pathbase.dockerfile
File metadata and controls
38 lines (31 loc) · 882 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
FROM nvidia/cuda:13.3.0-base-ubuntu22.04
# Set bash as the default shell
ENV SHELL=/bin/bash
# Create a working directory
WORKDIR /app/
# Build with some basic utilities
RUN apt-get update && apt-get install -y --no-install-recommends \
python3-pip \
apt-utils \
vim \
git \
curl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# alias python='python3'
RUN ln -s /usr/bin/python3 /usr/bin/python
# Install UV package manager
ADD https://astral.sh/uv/install.sh /uv-installer.sh
RUN sh /uv-installer.sh && rm /uv-installer.sh
ENV PATH="/root/.local/bin/:$PATH"
# build with some basic python packages
RUN uv pip install --no-cache-dir \
--system \
numpy \
torch \
torchvision \
torchaudio \
jupyterlab
# start jupyter lab
CMD ["jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--allow-root", "--no-browser"]
EXPOSE 8888