34 lines
707 B
Docker
34 lines
707 B
Docker
FROM docker.io/library/debian:bullseye-slim
|
|
|
|
RUN --mount=type=cache,target=/var/cache \
|
|
--mount=type=cache,target=/var/lib/apt \
|
|
apt-get update \
|
|
&& apt-get install -y \
|
|
--no-install-recommends \
|
|
ca-certificates \
|
|
apt-transport-https \
|
|
&& :
|
|
|
|
COPY *.list /etc/apt/sources.list.d/
|
|
|
|
COPY *.gpg /etc/apt/trusted.gpg.d/
|
|
|
|
RUN --mount=type=cache,target=/var/cache \
|
|
--mount=type=cache,target=/var/lib/apt \
|
|
apt-get update \
|
|
&& apt-get install -y \
|
|
--no-install-recommends \
|
|
procps \
|
|
tini \
|
|
unifi \
|
|
&& :
|
|
|
|
COPY unifi.sh /usr/local/sbin/unifi
|
|
|
|
USER unifi:unifi
|
|
|
|
VOLUME /var/lib/unifi
|
|
VOLUME /var/log/unifi
|
|
|
|
CMD ["tini", "unifi"]
|