buildx/unifi/Dockerfile

30 lines
859 B
Docker
Raw Permalink Normal View History

FROM ubuntu:focal-20210416
2020-08-20 08:47:08 +00:00
ARG DEBIAN_FRONTEND=noninteractive
2021-02-18 14:12:53 +00:00
COPY entrypoint.sh /docker-entrypoint.sh
2020-08-20 08:47:08 +00:00
ARG TARGETARCH
2020-08-28 07:50:35 +00:00
ARG UNIFI_VERSION
ARG VERSION
ENV VERSION $VERSION
2021-02-18 14:12:53 +00:00
ENV JAVA_OPTS -Xmx512M
2020-08-28 07:50:35 +00:00
2020-08-20 08:47:08 +00:00
WORKDIR /tmp
RUN mkdir -p /usr/share/man/man1 && \
apt update -qq && \
apt install -qqy --no-install-recommends wget ca-certificates && \
wget -q https://www.ubnt.com/downloads/unifi/${UNIFI_VERSION}/unifi_sysvinit_all.deb && \
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/* && \
2021-02-18 14:12:53 +00:00
rm /tmp/unifi_sysvinit_all.deb && \
ln -s /var/lib/unifi /usr/lib/unifi/data
2020-08-20 08:47:08 +00:00
EXPOSE 8080/tcp 8443/tcp 8843/tcp 8880/tcp 3478/udp
WORKDIR /var/lib/unifi
2020-08-28 07:46:57 +00:00
2020-08-28 08:13:41 +00:00
ENTRYPOINT ["/usr/bin/tini", "-g", "--", "/docker-entrypoint.sh"]
2020-08-20 08:47:08 +00:00
CMD ["start"]