forked from brettcs/dtrx
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathDockerfile
More file actions
63 lines (56 loc) · 1.3 KB
/
Dockerfile
File metadata and controls
63 lines (56 loc) · 1.3 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
FROM ubuntu:jammy-20251001
ARG DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-c", "-o", "pipefail"]
# hadolint ignore=DL3008
RUN apt-get update && apt-get install -y --no-install-recommends \
arj \
binutils \
brotli \
build-essential \
ca-certificates \
clang \
cpio \
curl \
file \
git \
gzip \
lhasa \
libbz2-dev \
libffi-dev \
liblzma-dev \
libncursesw5-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libxmlsec1-dev \
llvm \
lrzip \
lzip \
make \
p7zip-full \
python3 \
python3-dev \
python3-pip \
python3-venv \
rpm2cpio \
sudo \
tk-dev \
unrar \
unzip \
wget \
xz-utils \
zip \
zlib1g-dev \
zstd \
&& rm -rf /var/lib/apt/lists/*
# Create a non-root user for running tests
RUN groupadd --gid 1000 testuser && \
useradd --uid 1000 --gid testuser --shell /bin/bash --create-home testuser && \
echo 'testuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Install uv, pinned version
ARG UV_VERSION=0.9.7
RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/${UV_VERSION}/uv-installer.sh | sh
RUN cp $HOME/.local/bin/uv /usr/local/bin/uv && uv --version
# Switch to non-root user
USER testuser