forked from MiczFlor/RPi-Jukebox-RFID
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.buster.armv7
30 lines (25 loc) · 1.22 KB
/
Dockerfile.buster.armv7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM arm32v7/debian:buster-slim
COPY . /code
WORKDIR /code
RUN groupadd --gid 1000 pi ;\
useradd -u 1000 -g 1000 -G sudo -d /home/pi -m -s /bin/bash -p '$1$iV7TOwOe$6ojkJQXyEA9bHd/SqNLNj0' pi ;\
chown -R 1000:1000 /code /home/pi ;\
chmod +x /code/scripts/installscripts/buster-install-default.sh
RUN export DEBIAN_FRONTEND=noninteractive ;\
apt-get update ;\
apt-get -y install curl gnupg sudo nano;\
echo 'deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi' >> /etc/apt/sources.list.d/raspi.list ;\
echo 'deb http://archive.raspberrypi.org/debian/ buster main' > /etc/apt/sources.list.d/raspi.list ;\
curl http://raspbian.raspberrypi.org/raspbian.public.key | apt-key add - ;\
curl http://archive.raspberrypi.org/debian/raspberrypi.gpg.key | apt-key add - ;\
echo 'pi ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/pi ;\
apt-get clean ;\
rm -rf /var/cache/apt/* /var/lib/apt/lists/*
RUN export DEBIAN_FRONTEND=noninteractive ;\
apt-get update ;\
apt-get -y dist-upgrade --auto-remove --purge ;\
apt-get -y install wget build-essential git iw locales wpasupplicant ;\
apt-get clean ;\
touch /boot/cmdline.txt /etc/sysctl.conf ;\
rm -rf /var/cache/apt/* /var/lib/apt/lists/*
USER pi