132 Commits

Author SHA1 Message Date
Johannes Wienke
19b9b2a396 Upgrade Docker image to Alpine 3.11
This make tesseract 4.1 avaialbe, which fixes some things like infinite
processing loops on some documents: tesseract-ocr/tesseract#2288
2020-03-01 10:59:59 +01:00
lawtancool
6d87bce905
add tzdata apk install to Dockerfile 2020-02-17 21:46:21 -08:00
Florian Gabsteiger
bdeaf33462 Copy gunicorn.conf to docker container and use it in entrypoint 2019-09-22 11:47:22 +02:00
Daniel Quinn
290051c1b3
Merge pull request #563 from diveflo/feat/docker/alpine
Upgrade docker base image to alpine v3.10
2019-09-08 12:25:33 +01:00
Florian Gabsteiger
3050ff1594 Upgrade docker base image to alpine v3.10 2019-09-04 23:00:34 +02:00
Florian Gabsteiger
6ca7322aee Move static file collection from docker entrypoint to Dockerfile to reduce superflous work 2019-08-30 22:38:38 +02:00
ahyear
0cc5d8b891
Merge pull request #521 from JensPfeifle/update_github_links
Update links to reflect move from danielquinn to the-paperless-project
2019-04-04 11:16:05 +02:00
jenspfeifle
362570ca0d update links to reflect move to the-paperless-project 2019-03-05 21:54:59 +01:00
Benedikt Heine
a590fdaec6 Sort package arguments in Dockerfile
This applies the Dockerfile best practices from dockerhub.

Also it adds `--no-cache` to the `apk add` calls. This has got the same effect
like `apk update`, but doesn't store the package lists in the container.
2019-02-18 10:52:56 +01:00
Daniel Quinn
dafa6a4c71 Use pipenv in the Docker build 2018-12-30 17:31:26 +00:00
Scott Peshak
96dafe8c43 Add psycopg2 dependencies to Dockerfile 2018-12-02 16:14:58 -06:00
Daniel Quinn
750ab5bf85 Use optipng to optimise document thumbnails 2018-10-07 14:56:38 +01:00
euri10
9dd76f1b87 Fix issue where tesseract langages weren't installed properly 2018-09-24 13:30:10 +02:00
Enno Lohmeier
f31d535da8 optimize Dockerfile for caching 2018-07-05 13:02:11 +02:00
Jacob Hansson
10d22abd8f
Add curl as dependency in docker container
The health check in `docker-compose.yml` uses curl, but the `alpine:3.7` image this Dockerfile builds on doesn't include curl, leading to the health check failing:

    {
        "Start": "2018-03-06T20:48:57.293359619-06:00",
        "End": "2018-03-06T20:48:57.388576132-06:00",
        "ExitCode": -1,
        "Output": "OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused \"exec: \\\"curl\\\": executable file not found in $PATH\": unknown"
    }

This should be reproducible by simply following the docker-based installation instructions; without this change my `docker-compose up` fails because the health check fails. This change made the docker installation instructions work for me.
2018-03-06 20:57:57 -06:00
Daniel Quinn
08adb2f540
Merge pull request #312 from pitkley/docker-fix-groupmod
Fix modifying the GID under alpine
2018-02-25 12:43:22 +01:00
Pit Kleyersburg
4333ee01bc Fix modifying the GID under alpine
Fixes #306.
2018-02-25 12:36:51 +01:00
Georgi Todorov
3f9ea7b971 Add a dependency link between two containers and change the way Django migrations are done. Provide example for auto-starting the containers 2018-02-05 18:23:35 -05:00
Daniel Quinn
9470154df2 Fiddling to get Docker Hub to behave 2018-02-01 13:02:48 +00:00
Daniel Quinn
cd92c005e3 Add support for using pre-existing text from PDFs 2018-01-30 20:13:35 +00:00
Guy
cbbc4d37d0 Updated Dockerfile with maintainer and contributors
Updated setup.rst with information on upgrade path if coming from an
earlier version of docker-compose images
2018-01-29 23:19:06 +02:00
Guy Addadi
76293084a4 removed ENV WORKDIR layers, reorg the commands in groups with comments
and black lines when possible. Removed redundant mkdir command
2017-12-12 23:12:34 +02:00
Guy Addadi
e1cf2117f5 moved to alpine:3.7 removed RUN layers to save image space, removed
redundant mkdir commands
2017-12-11 22:03:51 +02:00
Guy Addadi
7d81de4edf added bash and moved all dev packages to be with virtual alpine env that
is removed after python libraries installation
2017-12-11 00:41:36 +02:00
Guy Addadi
37af5992c7 adapted Dockerfile for alpine image 2017-12-09 23:08:56 +02:00
Sven Fischer
4c05a511c2 Docker: review fix: if end-user host-mounts the export directory 2017-05-02 19:06:01 +02:00
Sven Fischer
b5bef13b46 Docker: prepare export directory 2017-05-02 13:01:09 +02:00
Jamie Magee
ffd198de28 Use latest Python 3.5
`python:3.5` matches to the latest 3.5.x version. See https://hub.docker.com/_/python/ for more info
2016-08-16 17:24:47 +02:00
Pit Kleyersburg
fb36a49c26 Add unpaper as another pre-processing step 2016-03-06 15:30:37 +01:00
Pit Kleyersburg
9180ad78c4 Update Dockerfile to match latest version 2016-03-06 14:49:25 +01:00
Pit Kleyersburg
21cd4e9f14 Update env-var in Dockerfile, fix volume names 2016-03-02 09:10:52 +01:00
Pit Kleyersburg
724afa59c7 Add Dockerfile for application and documentation
This commit adds a `Dockerfile` to the root of the project, accompanied
by a `docker-compose.yml.example` for simplified deployment. The
`Dockerfile` is agnostic to whether it will be the webserver, the
consumer, or if it is run for a one-off command (i.e. creation of a
superuser, migration of the database, document export, ...).

The containers entrypoint is the `scripts/docker-entrypoint.sh` script.
This script verifies that the required permissions are set, remaps the
default users and/or groups id if required and installs additional
languages if the user wishes to.

After initialization, it analyzes the command the user supplied:

  - If the command starts with a slash, it is expected that the user
    wants to execute a binary file and the command will be executed
    without further intervention. (Using `exec` to effectively replace
    the started shell-script and not have any reaping-issues.)

  - If the command does not start with a slash, the command will be
    passed directly to the `manage.py` script without further
    modification. (Again using `exec`.)

The default command is set to `--help`.

If the user wants to execute a command that is not meant for `manage.py`
but doesn't start with a slash, the Docker `--entrypoint` parameter can
be used to circumvent the mechanics of `docker-entrypoint.sh`.

Further information can be found in `docs/setup.rst` and in
`docs/migrating.rst`.

For additional convenience, a `Dockerfile` has been added to the `docs/`
directory which allows for easy building and serving of the
documentation. This is documented in `docs/requirements.rst`.
2016-02-18 22:58:32 +01:00