Skip to content

Instantly share code, notes, and snippets.

@tribut
Created August 22, 2021 21:23
Show Gist options
  • Save tribut/4b6109f610d830b2ed5d644e9a5a6941 to your computer and use it in GitHub Desktop.
Save tribut/4b6109f610d830b2ed5d644e9a5a6941 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -eEuo pipefail
# docker run -d -t --name paperless-test -v $(pwd):/paperless ubuntu:focal /bin/bash
# docker exec -it paperless-test /bin/bash
apt update
apt install --no-install-recommends --assume-yes python3 python3-pip python3-dev fonts-liberation gnupg libpq-dev libmagic-dev mime-support unpaper tesseract-ocr imagemagick ghostscript optipng
pip install --upgrade pipenv
cd /paperless
pipenv install --system --dev --ignore-pipfile
adduser --disabled-login --gecos "" nonroot
su nonroot
# cd src
# pytest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment