diff --git a/Dockerfile b/Dockerfile index f31ad4c..99432fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,53 +1,51 @@ -#FROM ubuntu:16.04 -FROM ubuntu:22.04 +FROM python:slim-bullseye -RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install tzdata && apt-get -y clean - -RUN apt-get update && apt-get install -y --no-install-recommends apt-utils && apt-get -y clean - -RUN apt-get -y update && apt-get -y upgrade && apt-get -y clean -RUN apt-get -y install \ - sane \ - sane-utils \ +RUN <> /etc/sudoers +RUN <> /etc/sudoers +EOF ENV NAME="Scanner" ENV MODEL="MFC-L2700DW" @@ -55,28 +53,24 @@ ENV IPADDRESS="192.168.1.123" ENV USERNAME="NAS" ENV REMOVE_BLANK_THRESHOLD="0.3" -#only set these variables in the compose file, if inotify needs to be triggered (e.g., for Synology Drive): +# Only set these variables in the compose file, if inotify needs to be triggered (e.g., for Synology Drive): ENV SSH_USER="" ENV SSH_PASSWORD="" ENV SSH_HOST="" ENV SSH_PATH="" -#only set these variables in the compose file, if you need FTP upload: +# Only set these variables in the compose file, if you need FTP upload: ENV FTP_USER="" ENV FTP_PASSWORD="" ENV FTP_HOST="" -#only set these variables in the compose file, if you need Telegram notifications: +# Only set these variables in the compose file, if you need Telegram notifications: ENV TELEGRAM_TOKEN="" ENV TELEGRAM_CHATID="" # Make sure this ends in a slash. ENV FTP_PATH="/scans/" -EXPOSE 54925 -EXPOSE 54921 -EXPOSE 80 - #ADD files/gui/index.php /var/www/html #ADD files/gui/main.css /var/www/html #ADD files/api/scan.php /var/www/html @@ -85,9 +79,8 @@ EXPOSE 80 #ADD files/api/download.php /var/www/html COPY html /var/www/html RUN chown -R www-data /var/www/ + #directory for scans: VOLUME /scans -CMD /opt/brother/runScanner.sh - - +CMD ["bash", "-c", "/opt/brother/runScanner.sh"]