2023-07-17 09:10:11 +08:00
|
|
|
FROM debian:bookworm-slim
|
2021-09-05 05:33:52 +08:00
|
|
|
|
|
|
|
ENV LANG C
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
# qtbase5-dev skipped
|
|
|
|
RUN apt-get update && \
|
2022-10-29 06:40:03 +08:00
|
|
|
apt-get upgrade -y && \
|
2021-09-05 05:33:52 +08:00
|
|
|
apt-get dist-upgrade -y && \
|
2023-07-15 22:52:48 +08:00
|
|
|
apt-get install -y --no-install-recommends git ca-certificates build-essential cmake pkg-config libreadline-dev gcc-arm-none-eabi libnewlib-dev libbz2-dev liblz4-dev libbluetooth-dev libpython3-dev libssl-dev sudo && \
|
2021-09-05 05:33:52 +08:00
|
|
|
apt-get clean
|
|
|
|
|
2023-07-17 09:10:11 +08:00
|
|
|
RUN apt-get install -y --no-install-recommends python3-minimal python3-pip python3-venv && \
|
|
|
|
apt-get clean
|
2022-10-29 05:38:22 +08:00
|
|
|
|
2023-01-16 01:46:14 +08:00
|
|
|
RUN apt-get install -y opencl-dev && \
|
|
|
|
apt-get clean
|
|
|
|
|
2021-09-05 05:33:52 +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"
|
|
|
|
|
|
|
|
CMD ["/bin/bash"]
|