Debian Codegraph @

Dockerfile

raw
1
2 FROM ubuntu:jammy-20251001
3
4 ARG DEBIAN_FRONTEND=noninteractive
5
6 SHELL ["/bin/bash", "-c", "-o", "pipefail"]
7
8 # hadolint ignore=DL3008
9 RUN apt-get update && apt-get install -y --no-install-recommends \
10 arj \
11 binutils \
12 brotli \
13 build-essential \
14 ca-certificates \
15 clang \
16 cpio \
17 curl \
18 file \
19 git \
20 gzip \
21 lhasa \
22 libbz2-dev \
23 libffi-dev \
24 liblzma-dev \
25 libncursesw5-dev \
26 libreadline-dev \
27 libsqlite3-dev \
28 libssl-dev \
29 libxml2-dev \
30 libxmlsec1-dev \
31 llvm \
32 lrzip \
33 lzip \
34 make \
35 p7zip-full \
36 python3 \
37 python3-dev \
38 python3-pip \
39 python3-venv \
40 rpm2cpio \
41 sudo \
42 tk-dev \
43 unrar \
44 unzip \
45 wget \
46 xz-utils \
47 zip \
48 zlib1g-dev \
49 zstd \
50 && rm -rf /var/lib/apt/lists/*
51
52 # Create a non-root user for running tests
53 RUN groupadd --gid 1000 testuser && \
54 useradd --uid 1000 --gid testuser --shell /bin/bash --create-home testuser && \
55 echo 'testuser ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
56
57 # Install uv, pinned version
58 ARG UV_VERSION=0.9.7
59 RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/${UV_VERSION}/uv-installer.sh | sh
60 RUN cp $HOME/.local/bin/uv /usr/local/bin/uv && uv --version
61
62 # Switch to non-root user
63 USER testuser