182 Commits

Author SHA1 Message Date
Johannes Wienke
5e0e936a04 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
00b3e0ef7a add tzdata apk install to Dockerfile 2020-02-17 21:46:21 -08:00
Florian Gabsteiger
c7e5bd96df Copy gunicorn.conf to docker container and use it in entrypoint 2019-09-22 11:47:22 +02:00
Daniel Quinn
73bdcf3a6e 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
f2b291c38f Upgrade docker base image to alpine v3.10 2019-09-04 23:00:34 +02:00
Florian Gabsteiger
18e3e1d437 Move static file collection from docker entrypoint to Dockerfile to reduce superflous work 2019-08-30 22:38:38 +02:00
ahyear
6280c1eef7 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
76f110cd74 update links to reflect move to the-paperless-project 2019-03-05 21:54:59 +01:00
Benedikt Heine
696ea375f5 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
42a99c1b97 Use pipenv in the Docker build 2018-12-30 17:31:26 +00:00
Scott Peshak
b9bd647248 Add psycopg2 dependencies to Dockerfile 2018-12-02 16:14:58 -06:00
Daniel Quinn
bc898c1992 Use optipng to optimise document thumbnails 2018-10-07 14:56:38 +01:00
euri10
815f158fc3 Fix issue where tesseract langages weren't installed properly 2018-09-24 13:30:10 +02:00
Enno Lohmeier
5834b6f5e9 optimize Dockerfile for caching 2018-07-05 13:02:11 +02:00
Jacob Hansson
39f35c22d2 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
fb78ee8648 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
55c8b1b332 Fix modifying the GID under alpine
Fixes #306.
2018-02-25 12:36:51 +01:00
Georgi Todorov
0f6ff6ad53 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
b5c0bdfd3b Fiddling to get Docker Hub to behave 2018-02-01 13:02:48 +00:00
Daniel Quinn
269c32ce6a Add support for using pre-existing text from PDFs 2018-01-30 20:13:35 +00:00
Guy
76d8d9806b 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
98d4e102bf 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
a825c54634 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
c40b6fbd4e 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
54872c1298 adapted Dockerfile for alpine image 2017-12-09 23:08:56 +02:00
Sven Fischer
d4e972e96f Docker: review fix: if end-user host-mounts the export directory 2017-05-02 19:06:01 +02:00
Sven Fischer
11096e1393 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