-
Notifications
You must be signed in to change notification settings - Fork 57
/
Dockerfile.template
43 lines (25 loc) · 937 Bytes
/
Dockerfile.template
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
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM balenalib/rpi-raspbian:buster AS builder
RUN install_packages cmake \
libavahi-compat-libdnssd-dev libplist-dev libssl-dev \
build-essential\
git
RUN install_packages libraspberrypi-dev libraspberrypi-doc
WORKDIR /usr/src/app/
RUN git clone https://github.com/FD-/RPiPlay.git
WORKDIR /usr/src/app/RPiPlay/build
RUN cmake --DCMAKE_CXX_FLAGS="-O3" --DCMAKE_C_FLAGS="-O3" .. &&\
make -j &&\
make install
RUN install_packages python3-pip python3-setuptools rsync
WORKDIR /rootfs
WORKDIR /usr/src/app
RUN pip3 install git+https://github.com/larsks/dockerize
RUN dockerize -n --verbose -g video -g audio -o /rootfs/ /usr/local/bin/rpiplay &&\
rm /rootfs/Dockerfile
FROM --platform=linux/arm/v6 busybox:stable
COPY --from=builder /rootfs/ ./
WORKDIR /usr/src/app/
COPY start.sh ./
COPY VERSION ./
RUN chmod +x ./start.sh
CMD ["sh", "./start.sh"]