15 lines
630 B
Docker
15 lines
630 B
Docker
FROM archlinux:latest
|
|
|
|
COPY ./ricoh-sp150-ppd-v1.0.22-1-x86_64.pkg.tar.zst /opt/
|
|
|
|
RUN pacman -Sy && pacman -S --noconfirm cups && pacman -U --noconfirm /opt/ricoh-sp150-ppd-v1.0.22-1-x86_64.pkg.tar.zst && pacman -Scc --noconfirm
|
|
RUN useradd -r -G root -M admin; \
|
|
sed -i 's%admin:!:20024%admin:$y$j9T$hw1G6LnWpCcLzXHTpxzxf0$GVeFQpWJ5X2pw7ZZqGzn2CPU/nS9aWAmD0wlEWYkGZ4:20024%g' /etc/shadow; \
|
|
ln -fs /usr/share/zoneinfo/EuropeMoscow /etc/localtime
|
|
|
|
COPY ./cupsd.conf /etc/cups/cupsd.conf
|
|
COPY ./printers.conf /etc/cups/printers.conf
|
|
COPY ./RICOH_SP_150SU.ppd /etc/cups/ppd/RICOH_SP_150SU.ppd
|
|
|
|
CMD ["/usr/bin/cupsd", "-f"]
|