forked from markdegrootnl/unifi-protect-arm64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
60 lines (50 loc) · 1.82 KB
/
Dockerfile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM arm64v8/debian:9
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
curl \
wget \
mount \
psmisc \
dpkg \
apt \
lsb-release \
sudo \
gnupg \
apt-transport-https \
ca-certificates \
dirmngr \
mdadm \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get -y --no-install-recommends install systemd \
&& find /etc/systemd/system \
/lib/systemd/system \
-path '*.wants/*' \
-not -name '*journald*' \
-not -name '*systemd-tmpfiles*' \
-not -name '*systemd-user-sessions*' \
-exec rm \{} \; \
&& rm -rf /var/lib/apt/lists/*
STOPSIGNAL SIGKILL
RUN apt-get update \
&& apt-get -y --no-install-recommends install postgresql \
&& sed -i 's/peer/trust/g' /etc/postgresql/9.6/main/pg_hba.conf \
&& rm -rf /var/lib/apt/lists/*
COPY put-deb-files-here/*.deb files/postgresql.sh /
COPY put-version-file-here/version /usr/lib/version
RUN apt-get update \
&& apt-get -y --no-install-recommends install /*.deb \
&& rm -f /*.deb \
&& rm -rf /var/lib/apt/lists/* \
&& /postgresql.sh \
&& rm /postgresql.sh \
&& echo "exit 0" > /usr/sbin/policy-rc.d \
&& sed -i "s/Requires=network.target [email protected] ulp-go.service/Requires=network.target [email protected]/" /lib/systemd/system/unifi-core.service \
&& sed -i 's/redirectHostname: unifi//' /usr/share/unifi-core/app/config/config.yaml
COPY files/ubnt-tools /sbin/ubnt-tools
VOLUME ["/srv", "/data", "/persistent"]
CMD ["/lib/systemd/systemd"]