2021-05-14 01:40:47 +08:00
|
|
|
FROM archlinux:base
|
2020-06-08 08:53:13 +08:00
|
|
|
|
2024-09-10 06:14:37 +08:00
|
|
|
ENV LANG=C
|
2022-01-09 23:09:50 +08:00
|
|
|
RUN pacman -Syu --noconfirm
|
2020-06-08 08:53:13 +08:00
|
|
|
RUN pacman-db-upgrade
|
|
|
|
# qt5-base skipped
|
2021-10-12 05:17:38 +08:00
|
|
|
# bluez skipped, can't be installed in docker
|
2024-09-10 06:59:14 +08:00
|
|
|
RUN pacman -S --noconfirm sudo git base-devel cmake libusb readline bzip2 lz4 gd arm-none-eabi-gcc arm-none-eabi-newlib python --needed
|
2020-06-08 08:53:13 +08:00
|
|
|
|
2022-10-29 03:59:17 +08:00
|
|
|
RUN pacman -S --noconfirm python-pip
|
|
|
|
|
2023-01-16 01:46:14 +08:00
|
|
|
# OpenCL for hitag2crack
|
|
|
|
RUN pacman -S --noconfirm ocl-icd
|
|
|
|
|
2020-06-08 08:53:13 +08:00
|
|
|
# Create rrg user
|
|
|
|
RUN useradd -ms /bin/bash rrg
|
|
|
|
RUN passwd -d rrg
|
|
|
|
RUN printf 'rrg ALL=(ALL) ALL\n' | tee -a /etc/sudoers
|
|
|
|
|
|
|
|
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"]
|