| 123456789101112131415161718 |
- # syntax=docker/dockerfile:1.4
- FROM debian:trixie-slim
- RUN --mount=type=cache,target=/var/cache/apt \
- --mount=type=cache,target=/var/lib/apt \
- apt update \
- && apt install -y git curl build-essential clangd ca-certificates automake sudo
- ADD . /scripts
- WORKDIR /scripts
- RUN useradd -m -s /bin/bash bootstrap \
- && chown -R bootstrap:bootstrap /scripts \
- && echo "bootstrap ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/bootstrap \
- && chmod 0440 /etc/sudoers.d/bootstrap
- USER bootstrap
-
|