forked from PhilippMundhenk/BrotherScannerDocker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
49 lines (35 loc) · 1.31 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
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update && apt-get -y upgrade && apt-get -y clean
RUN apt-get -y install sane sane-utils ghostscript netpbm wget graphicsmagick curl ssh sshpass && apt-get -y clean
RUN cd /tmp && \
wget https://download.brother.com/welcome/dlf105200/brscan4-0.4.10-1.amd64.deb && \
dpkg -i /tmp/brscan4-0.4.10-1.amd64.deb && \
rm /tmp/brscan4-0.4.10-1.amd64.deb
RUN cd /tmp && \
wget https://download.brother.com/welcome/dlf006652/brscan-skey-0.3.1-2.amd64.deb && \
dpkg -i /tmp/brscan-skey-0.3.1-2.amd64.deb && \
rm /tmp/brscan-skey-0.3.1-2.amd64.deb
ADD files/runScanner.sh /opt/brother/runScanner.sh
COPY script /opt/brother/scanner/brscan-skey/script
ENV NAME="Scanner"
ENV MODEL="MFC-L2700DW"
ENV IPADDRESS="192.168.1.123"
ENV USERNAME="NAS"
#only set these variables, if inotify needs to be triggered (e.g., for CloudStation):
ENV SSH_USER="admin"
ENV SSH_PASSWORD="admin"
ENV SSH_HOST="localhost"
ENV SSH_PATH="/path/to/scans/folder/"
#only set these variables, if you need FTP upload:
ENV FTP_USER="scanner"
ENV FTP_PASSWORD="scanner"
ENV FTP_HOST="ftp.mydomain.com"
ENV FTP_PATH="/"
EXPOSE 54925
EXPOSE 54921
#directory for scans:
VOLUME /scans
#directory for config files:
VOLUME /opt/brother/scanner/brscan-skey
CMD /opt/brother/runScanner.sh