2021-05-13 19:40:47 +02:00
|
|
|
FROM archlinux:base
|
2020-06-08 02:53:13 +02:00
|
|
|
|
2026-02-26 20:37:45 +01:00
|
|
|
ENV LANG=C.UTF-8
|
2022-01-09 16:09:50 +01:00
|
|
|
RUN pacman -Syu --noconfirm
|
2020-06-08 02:53:13 +02:00
|
|
|
RUN pacman-db-upgrade
|
2026-02-27 00:01:14 +01:00
|
|
|
|
2021-10-11 23:17:38 +02:00
|
|
|
# bluez skipped, can't be installed in docker
|
2026-03-23 22:36:39 +01:00
|
|
|
RUN pacman -S --noconfirm sudo git base-devel cmake libusb readline bzip2 lz4 zlib gd arm-none-eabi-gcc arm-none-eabi-newlib --needed
|
2022-10-28 21:59:17 +02:00
|
|
|
|
2023-01-15 18:46:14 +01:00
|
|
|
# OpenCL for hitag2crack
|
|
|
|
|
RUN pacman -S --noconfirm ocl-icd
|
|
|
|
|
|
2026-02-27 00:01:14 +01:00
|
|
|
ARG SKIPQT=false
|
|
|
|
|
RUN if [ "${SKIPQT}" = "false" ]; then \
|
|
|
|
|
pacman -S --noconfirm qt6-base; \
|
|
|
|
|
fi
|
|
|
|
|
|
2020-06-08 02:53:13 +02:00
|
|
|
# Create rrg user
|
|
|
|
|
RUN useradd -ms /bin/bash rrg
|
|
|
|
|
RUN passwd -d rrg
|
2024-12-18 13:29:50 +01:00
|
|
|
ARG UART_GID
|
|
|
|
|
# dialout group may already exist on another numeric ID than on host
|
2024-12-18 15:29:26 +01:00
|
|
|
RUN if [ -n "${UART_GID}" ]; then \
|
|
|
|
|
groupadd -g ${UART_GID} mydialout || true; \
|
|
|
|
|
usermod -aG ${UART_GID} rrg; \
|
|
|
|
|
fi
|
2020-06-08 02:53:13 +02:00
|
|
|
RUN printf 'rrg ALL=(ALL) ALL\n' | tee -a /etc/sudoers
|
|
|
|
|
|
2025-10-21 22:04:05 +02:00
|
|
|
# uv
|
|
|
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
|
|
|
|
|
2020-06-08 02:53:13 +02:00
|
|
|
USER rrg
|
|
|
|
|
WORKDIR "/home/rrg"
|
|
|
|
|
|
|
|
|
|
RUN git clone https://aur.archlinux.org/package-query.git && cd package-query && makepkg -si --noconfirm --needed && cd .. && rm -rf package-query
|
|
|
|
|
|
|
|
|
|
CMD ["/bin/bash"]
|