mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-10 18:43:29 +00:00
26 lines
835 B
Docker
26 lines
835 B
Docker
FROM ubuntu:focal-20200729
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
ARG TARGETARCH
|
|
ENV UNIFI_VERSION 6.0.13-49f6654778
|
|
ENV VERSION 6.0.13
|
|
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/* && \
|
|
rm /tmp/unifi_sysvinit_all.deb
|
|
|
|
|
|
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
|
|
|
|
ENTRYPOINT ["/usr/bin/tini", "-g", "--", "/usr/bin/java", "-Xmx512M", "-jar", "/usr/lib/unifi/lib/ace.jar"]
|
|
CMD ["start"]
|