From 3b43f74139f5fbfd524d71eac1d4966e868bb355 Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Wed, 25 Sep 2024 21:50:18 +0200 Subject: [PATCH] Clean up Dockerfile --- Dockerfile | 88 ++++++++++++++++++++++++++---------------------------- 1 file changed, 42 insertions(+), 46 deletions(-) diff --git a/Dockerfile b/Dockerfile index f31ad4c..a940e17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,53 +1,54 @@ -#FROM ubuntu:16.04 FROM ubuntu:22.04 -RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install tzdata && apt-get -y clean +ENV DEBIAN_FRONTEND=noninteractive -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 +56,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 +82,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 - -