forked from bnhf/apcupsd-admin-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 730 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (22 loc) · 730 Bytes
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
# APC UPS Power Management Web Interface (from debian:latest, fcgiwrap, apcupsd-cgi)
FROM debian:bullseye
LABEL Scott Ueland (https://github.com/bnhf)
# update
RUN apt-get -y update && apt-get -y upgrade
# install
RUN apt-get -y install nginx-light apcupsd-cgi fcgiwrap iputils-ping \
&& mkdir /opt/apcupsd \
&& mv /etc/apcupsd/* /opt/apcupsd
#ADD apcupsd-hosts.conf /etc/apcupsd/hosts.conf
COPY scripts /opt/apcupsd
COPY startup.sh /opt/startup.sh
COPY nginx.conf /etc/nginx/nginx.conf
# place files for optional dashboard provisioning
COPY dashboard /opt
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
# clean
RUN apt-get clean
# Port
EXPOSE 80
CMD /opt/startup.sh