|
@@ -12,7 +12,6 @@ RUN chown -R 0:0 /tmp/monitor \
|
|
|
&& chmod a+rX -R -c /tmp/monitor
|
|
|
|
|
|
FROM alpine:3.11
|
|
|
-
|
|
|
RUN apk add --no-cache \
|
|
|
bash \
|
|
|
bluez-btmon \
|
|
@@ -22,12 +21,13 @@ RUN apk add --no-cache \
|
|
|
&& find / -xdev -type f -perm /u+s -exec chmod -c u-s {} \; \
|
|
|
&& find / -xdev -type f -perm /g+s -exec chmod -c g-s {} \; \
|
|
|
&& mkdir /monitor-config \
|
|
|
- && chmod a+rwxt /monitor-config
|
|
|
+ && chmod a+rwxt /monitor-config `
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|
|
|
VOLUME /monitor-config
|
|
|
+COPY --from=download /tmp/monitor /monitor
|
|
|
+RUN chmod a+rwxt /monitor `
|
|
|
|
|
|
USER nobody
|
|
|
-COPY --from=download /tmp/monitor /monitor
|
|
|
|
|
|
WORKDIR /monitor
|
|
|
CMD ["bash", "monitor.sh", "-D", "/monitor-config"]
|