Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Sort package arguments in Dockerfile #509

Merged
merged 2 commits into from
Mar 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Copy link
Contributor

@Strubbl Strubbl Feb 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we include a --pull here to get the latest and greates base image?

docker build --pull -t paperless .

after_success:
- true

install:
- pip install --upgrade pip pipenv sphinx
Expand Down
29 changes: 24 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
MasterofJOKers marked this conversation as resolved.
Show resolved Hide resolved
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 && \
Expand Down