-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
28 lines (22 loc) · 1.02 KB
/
Dockerfile
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
FROM desktopcontainers/base-debian
MAINTAINER MarvAmBass (https://github.com/DesktopContainers)
RUN apt-get -q -y update && \
apt-get -q -y install wget \
telnet \
qemu-system-arm \
util-linux && \
apt-get -q -y clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN wget -O raspbian-lite.zip https://downloads.raspberrypi.org/raspbian_lite_latest && \
unzip raspbian-lite.zip && \
rm raspbian-lite.zip && \
mv *.img /raspberry.img && \
mkdir /images && \
wget -O /kernel "https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.4.34-jessie?raw=true" && \
sed -i 's/starting services"/starting services"\n\npatch-image.sh \/raspberry.img || exit 1\n\n/g' /usr/local/bin/entrypoint.sh && \
chmod a+rw /raspberry.img /kernel && \
echo "rpi.sh \$*" >> /usr/local/bin/ssh-app.sh
COPY scripts /usr/local/bin/
EXPOSE 2222
VOLUME ["/images"]
HEALTHCHECK CMD ["/usr/local/bin/docker-healthcheck"]