add basic auth

This commit is contained in:
Simon Zeyer
2024-10-16 12:07:22 +00:00
parent fa67553299
commit 69da949aa8
4 changed files with 17 additions and 5 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ ENV print_num=0
ENV printer="DEFAULT"
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
ENV MAPS_API_KEY=""
ENV BASIC_AUTH_PASSWORD=""
COPY *.deb /
@@ -62,4 +63,4 @@ COPY ./app .
COPY *.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates
CMD [ "sh","-c","/etc/init.d/cups start && python3 /usr/src/app/http.py" ]
CMD [ "sh","-c","/etc/init.d/cups start && python3 /usr/src/app/app.py" ]