mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-03-08 05:21:51 +00:00
38 lines
905 B
Docker
38 lines
905 B
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
LABEL io.hass.version="1" io.hass.type="addon" io.hass.arch="armhf|aarch64|i386|amd64"
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
cups \
|
|
avahi-daemon \
|
|
libnss-mdns \
|
|
dbus \
|
|
colord \
|
|
printer-driver-all-enforce \
|
|
openprinting-ppds \
|
|
hpijs-ppds \
|
|
hp-ppd \
|
|
hplip \
|
|
gnupg2 \
|
|
lsb-release \
|
|
nano \
|
|
samba \
|
|
bash-completion \
|
|
nginx \
|
|
&& apt-get clean -y \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY rootfs /
|
|
|
|
# Corrects permissions for s6 v3
|
|
RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
|
|
if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \
|
|
if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi
|
|
|
|
EXPOSE 631 445 137 139
|
|
|
|
RUN chmod a+x /run.sh
|
|
CMD ["/run.sh"]
|