-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathContainerfile
28 lines (26 loc) · 935 Bytes
/
Containerfile
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
FROM fedora:38 AS socle
MAINTAINER [email protected]
RUN echo "Installing Git"
RUN /bin/dnf install git wget -y
RUN echo "Installing Fedora dependencies"
RUN dnf update -y
RUN dnf install -y libtool automake autoconf gcc gcc-c++ redhat-rpm-config
RUN dnf install -y glib2-devel openssl
RUN dnf install -y nut-devel libuuid-devel
RUN dnf install -y popt-devel libsoup3-devel gtts
RUN dnf install -y json-glib-devel gammu-devel
RUN dnf install -y mpg123 sox libusb1-devel libgpiod-devel
RUN dnf install -y librsvg2-devel libstrophe-devel libphidget22-devel
RUN dnf install -y systemd-devel libjwt-devel
RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf
RUN echo "/usr/local/lib64" >> /etc/ld.so.conf.d/local.conf
FROM socle
MAINTAINER [email protected]
EXPOSE 5559
WORKDIR /Watchdog
COPY ./ ./
RUN ./autogen.sh
RUN make install
RUN ldconfig
ENV ABLS_IN_A_CONTAINER 1
CMD /usr/local/bin/Watchdogd