parent
b19abfbd1e
commit
cdbba03122
@ -0,0 +1,17 @@
|
|||||||
|
FROM python:3.7-alpine
|
||||||
|
|
||||||
|
COPY entrypoint-proxy /entrypoint
|
||||||
|
|
||||||
|
RUN adduser -D -u 54001 hbmon && \
|
||||||
|
apk update && \
|
||||||
|
apk add git gcc musl-dev && \
|
||||||
|
cd /opt && \
|
||||||
|
git clone https://github.com/sp2ong/HBMonv2.git && \
|
||||||
|
cd /opt/HBmonv2 && \
|
||||||
|
pip install --no-cache-dir -r requirements.txt && \
|
||||||
|
apk del git gcc musl-dev && \
|
||||||
|
chown -R radio: /opt/HBMonv2
|
||||||
|
|
||||||
|
USER hbmon
|
||||||
|
|
||||||
|
ENTRYPOINT [ "/entrypoint" ]
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd /opt/HBMonv2
|
||||||
|
python /opt/HBMonv2/monitor.py &
|
||||||
Loading…
Reference in new issue