mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-03-09 13:21:55 +00:00
[Cups-dev] Initial add
This commit is contained in:
50
cups-dev/Dockerfile
Normal file
50
cups-dev/Dockerfile
Normal file
@@ -0,0 +1,50 @@
|
||||
FROM ghcr.io/hassio-addons/debian-base:7.1.0
|
||||
|
||||
LABEL io.hass.version="1.0" io.hass.type="addon" io.hass.arch="aarch64|amd64"
|
||||
|
||||
# Set shell
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
sudo \
|
||||
locales \
|
||||
cups \
|
||||
avahi-daemon \
|
||||
libnss-mdns \
|
||||
dbus \
|
||||
colord \
|
||||
printer-driver-all \
|
||||
printer-driver-gutenprint \
|
||||
openprinting-ppds \
|
||||
hpijs-ppds \
|
||||
hp-ppd \
|
||||
hplip \
|
||||
printer-driver-foo2zjs \
|
||||
cups-pdf \
|
||||
gnupg2 \
|
||||
lsb-release \
|
||||
nano \
|
||||
samba \
|
||||
bash-completion \
|
||||
procps \
|
||||
&& apt-get clean -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY rootfs /
|
||||
|
||||
# Add user and disable sudo password checking
|
||||
RUN useradd \
|
||||
--groups=sudo,lp,lpadmin \
|
||||
--create-home \
|
||||
--home-dir=/home/print \
|
||||
--shell=/bin/bash \
|
||||
--password=$(mkpasswd print) \
|
||||
print \
|
||||
&& sed -i '/%sudo[[:space:]]/ s/ALL[[:space:]]*$/NOPASSWD:ALL/' /etc/sudoers
|
||||
|
||||
EXPOSE 631
|
||||
|
||||
RUN chmod a+x /run.sh
|
||||
|
||||
CMD ["/run.sh"]
|
||||
Reference in New Issue
Block a user