-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (52 loc) · 1.67 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
ARG MAINTAINER
FROM debian:stable-slim
MAINTAINER $MAINTAINER
ENV DEBIAN_FRONTEND noninteractive
ARG BRSCAN4_DEB=https://download.brother.com/pub/com/linux/linux/packages/brscan4-0.4.11-1.amd64.deb
ARG BRSCAN4KEY_DEB=https://download.brother.com/pub/com/linux/linux/packages/brscan-skey-0.3.2-0.amd64.deb
# Install Packages
RUN apt-get update \
&& apt-get install -y --no-install-recommends locales \
&& apt-get clean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& locale-gen en_US en_US.UTF-8 \
&& dpkg-reconfigure locales
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
# sudo \
# whois \
# poppler-utils \
procps \
sane \
sane-utils \
dbus \
avahi-utils \
runit \
&& apt-get clean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# get brscan4
ADD $BRSCAN4_DEB \
$BRSCAN4KEY_DEB \
/tmp/
RUN dpkg -i /tmp/brscan4*.amd64.deb
RUN adduser saned scanner \
&& adduser saned lp \
&& chown saned:lp /etc/sane.d/saned.conf /etc/sane.d/dll.conf
# configure sane
RUN brsaneconfig4 -a name=dcp7065 model=DCP7065DN nodename=brodrucker && echo "192.168.10.0/24" >> /etc/sane.d/saned.conf
# Copy Sane conf
#COPY --chown=root:root init.sh /init.sh
# Copy init.sh
# COPY --chown=root:root resources/init.sh /init.sh
# VOLUME /output
# VOLUME /consume
COPY services/ /etc/sv/
COPY runit_startup.sh /
RUN ln -s /etc/sv/dbus /etc/service/ \
&& ln -s /etc/sv/saned /etc/service/ \
&& chmod +x /runit_startup.sh
# Expose Ports
EXPOSE 6566 10000 10001
CMD ["/runit_startup.sh"]