mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Merge pull request #509 from bebehei/docker
Sort package arguments in Dockerfile
This commit is contained in:
commit
7a9d985240
11
.travis.yml
11
.travis.yml
@ -12,6 +12,17 @@ matrix:
|
||||
- python: "3.5"
|
||||
- python: "3.6"
|
||||
- python: "3.7-dev"
|
||||
- env: BUILD_DOCKER=1
|
||||
services:
|
||||
- docker
|
||||
before_install:
|
||||
- true
|
||||
install:
|
||||
- true
|
||||
script:
|
||||
- docker build -t paperless .
|
||||
after_success:
|
||||
- true
|
||||
|
||||
install:
|
||||
- pip install --upgrade pip pipenv sphinx
|
||||
|
29
Dockerfile
29
Dockerfile
@ -12,11 +12,30 @@ COPY scripts/docker-entrypoint.sh /sbin/docker-entrypoint.sh
|
||||
ENV PAPERLESS_EXPORT_DIR=/export \
|
||||
PAPERLESS_CONSUMPTION_DIR=/consume
|
||||
|
||||
|
||||
RUN apk update --no-cache && apk add python3 gnupg libmagic libpq bash shadow curl \
|
||||
sudo poppler tesseract-ocr imagemagick ghostscript unpaper optipng && \
|
||||
apk add --virtual .build-dependencies \
|
||||
python3-dev poppler-dev postgresql-dev gcc g++ musl-dev zlib-dev jpeg-dev && \
|
||||
RUN apk add --no-cache \
|
||||
bash \
|
||||
curl \
|
||||
ghostscript \
|
||||
gnupg \
|
||||
imagemagick \
|
||||
libmagic \
|
||||
libpq \
|
||||
optipng \
|
||||
poppler \
|
||||
python3 \
|
||||
shadow \
|
||||
sudo \
|
||||
tesseract-ocr \
|
||||
unpaper && \
|
||||
apk add --no-cache --virtual .build-dependencies \
|
||||
g++ \
|
||||
gcc \
|
||||
jpeg-dev \
|
||||
musl-dev \
|
||||
poppler-dev \
|
||||
postgresql-dev \
|
||||
python3-dev \
|
||||
zlib-dev && \
|
||||
# Install python dependencies
|
||||
python3 -m ensurepip && \
|
||||
rm -r /usr/lib/python*/ensurepip && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user