add dockerfile for RPiPlay
This commit is contained in:
1 parent
fe15640ca3
commit
b5355c46f7
1 file changed
+43
@@ -0,0 +1,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"]
|
||||
Reference in new issue
Block a user