Docker: fix test for pm3 when building images
[RRG-proxmark3.git] / docker / fedora-36 / Dockerfile
blob1041b799a99bc6912eac9818b99df4301da08a64
1 FROM fedora:36
3 ENV LANG=C
4 # qt5-qtbase-devel skipped
5 RUN dnf install -y passwd sudo git make gcc gcc-c++ arm-none-eabi-gcc-cs arm-none-eabi-newlib readline-devel bzip2-devel lz4-devel bluez-libs-devel python3-devel openssl-devel gd-devel libatomic findutils
7 RUN yum -y update
8 RUN yum -y install cmake python-pip
9 RUN python3 -m pip install ansicolors sslcrypto
11 RUN yum -y install mesa-libOpenCL ocl-icd-devel
13 # Create rrg user
14 RUN useradd -ms /bin/bash rrg
15 RUN passwd -d rrg
16 ARG UART_GID
17 # dialout group may already exist on another numeric ID than on host
18 RUN if [ -n "${UART_GID}" ]; then \
19     groupadd -g ${UART_GID} mydialout || true; \
20     usermod -aG ${UART_GID} rrg; \
21   fi
22 RUN printf 'rrg ALL=(ALL) ALL\n' | tee -a /etc/sudoers
24 USER rrg
25 WORKDIR "/home/rrg"
27 CMD ["/bin/bash"]