-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.arm32
39 lines (25 loc) · 896 Bytes
/
Dockerfile.arm32
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
FROM balenalib/raspberry-pi-python
# ARG NUT_VERSION=2.7.4-r6
# RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing nut python3 py3-pip
# RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' \
# >>/etc/apk/repositories && \
# echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' \
# >>/etc/apk/repositories && \
# apk add --update nut@testing=$NUT_VERSION \
# python3 py3-pip
# RUN apt-get update && apt-get install -y nut usbutils
RUN apt update && apt install nut
WORKDIR /usr/src/app
COPY ./nut-config/* /etc/nut/
RUN chmod -R 777 /etc/nut/
COPY ./scripts ./scripts
RUN pip3 install -r scripts/requirements.txt
ENV INFLUX_HOST influx.xrho.com
ENV INFLUX_PORT 8086
ENV INFLUX_DB ups-generic
ENV UPS_NAME amazonbasics
CMD /usr/src/app/scripts/start.sh \
$INFLUX_HOST \
$INFLUX_PORT \
$INFLUX_DB \
$UPS_NAME