From 2d47d49c493360121720943124c3a86a9674bb93 Mon Sep 17 00:00:00 2001 From: Adrien le Maire Date: Thu, 18 Feb 2021 14:12:53 +0000 Subject: [PATCH] Update Dockerfile --- unifi/Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/unifi/Dockerfile b/unifi/Dockerfile index c4594fc..4ddfa15 100644 --- a/unifi/Dockerfile +++ b/unifi/Dockerfile @@ -1,11 +1,13 @@ -FROM ubuntu:focal-20201106 +FROM ubuntu:focal-20210119 ARG DEBIAN_FRONTEND=noninteractive +COPY entrypoint.sh /docker-entrypoint.sh ARG TARGETARCH ARG UNIFI_VERSION ARG VERSION ENV VERSION $VERSION +ENV JAVA_OPTS -Xmx512M WORKDIR /tmp RUN mkdir -p /usr/share/man/man1 && \ @@ -15,16 +17,13 @@ RUN mkdir -p /usr/share/man/man1 && \ apt install -qqy --no-install-recommends /tmp/unifi_sysvinit_all.deb procps tini openjdk-8-jre-headless && \ apt remove -qqy wget && \ rm -rf /var/lib/apt/lists/* && \ - rm /tmp/unifi_sysvinit_all.deb + rm /tmp/unifi_sysvinit_all.deb && \ + ln -s /var/lib/unifi /usr/lib/unifi/data -RUN ln -s /var/lib/unifi /usr/lib/unifi/data EXPOSE 8080/tcp 8443/tcp 8843/tcp 8880/tcp 3478/udp WORKDIR /var/lib/unifi -ENV JAVA_OPTS -Xmx512M -COPY entrypoint.sh /docker-entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--", "/docker-entrypoint.sh"] - CMD ["start"]