Skip to content

Commit

Permalink
added bash and moved all dev packages to be with virtual alpine env that
Browse files Browse the repository at this point in the history
is removed after python libraries installation
  • Loading branch information
addadi committed Dec 10, 2017
1 parent 37af599 commit 7d81de4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ FROM alpine:latest

# Install dependencies
RUN apk --no-cache --update add \
python3 python3-dev gcc musl-dev gnupg zlib-dev jpeg-dev libmagic \
sudo tesseract-ocr imagemagick ghostscript unpaper
python3 gnupg libmagic bash \
sudo tesseract-ocr imagemagick ghostscript unpaper && \
apk --no-cache add --virtual .build-dependencies \
python3-dev gcc musl-dev zlib-dev jpeg-dev

## Install python dependencies
RUN python3 -m ensurepip && \
Expand Down Expand Up @@ -46,4 +48,7 @@ RUN chmod 755 /sbin/docker-entrypoint.sh
VOLUME ["/usr/src/paperless/data", "/usr/src/paperless/media", "/consume", "/export"]

ENTRYPOINT ["/sbin/docker-entrypoint.sh"]

# Remove build dependencies
RUN apk del .build-dependencies
CMD ["--help"]

0 comments on commit 7d81de4

Please sign in to comment.