-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase_image.dockerfile
56 lines (52 loc) · 1.33 KB
/
base_image.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
44
45
46
47
48
49
50
51
52
53
54
55
56
# Stage 1: Base
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04 as base
# Setup base environment
LABEL author="[email protected]"
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND=noninteractive \
TZ=Asia/Shanghai \
PYTHONUNBUFFERED=1
# Create workspace working directory
WORKDIR /
# Stage 2: Install Ubuntu system level packages
RUN apt update && \
apt -y upgrade && \
apt install -y --no-install-recommends \
software-properties-common \
libgoogle-perftools4 \
libtcmalloc-minimal4 \
apt-transport-https \
build-essential \
ca-certificates \
openssh-server \
python3.10-venv \
libcairo2-dev \
libglib2.0-0 \
libxrender1 \
python3-dev \
python3-tk \
pkg-config \
p7zip-full \
net-tools \
libxext6 \
ffmpeg \
libgl1 \
libsm6 \
psmisc \
unzip \
bash \
curl \
htop \
ncdu \
wget \
git \
vim \
zip && \
update-ca-certificates && \
apt clean && \
rm -rf /var/lib/apt/lists/* && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen &&\
# Set Python and pip
ln -s /usr/bin/python3.10 /usr/bin/python && \
curl https://bootstrap.pypa.io/get-pip.py | python && \
rm -f get-pip.py