updated dockerfiles

This commit is contained in:
Jonas Winkler
2020-11-01 23:01:36 +01:00
parent 2a4127dc90
commit e326bc4f51
6 changed files with 162 additions and 41 deletions

View File

@@ -79,22 +79,11 @@ install_languages() {
done
}
if [[ "$1" != "/"* ]]; then
initialize
# Install additional languages if specified
if [[ ! -z "$PAPERLESS_OCR_LANGUAGES" ]]; then
install_languages "$PAPERLESS_OCR_LANGUAGES"
fi
if [[ "$1" = "gunicorn" ]]; then
shift
cd /usr/src/paperless/src/ && \
exec sudo -HEu paperless gunicorn -c /usr/src/paperless/gunicorn.conf.py "$@" paperless.wsgi
fi
exec sudo -HEu paperless python3 manage.py "$@"
initialize
# Install additional languages if specified
if [[ ! -z "$PAPERLESS_OCR_LANGUAGES" ]]; then
install_languages "$PAPERLESS_OCR_LANGUAGES"
fi
exec "$@"