mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
Use pipenv in the Docker build
This commit is contained in:
parent
a3c5ec834d
commit
dafa6a4c71
@ -4,8 +4,8 @@ LABEL maintainer="The Paperless Project https://github.com/danielquinn/paperless
|
|||||||
contributors="Guy Addadi <addadi@gmail.com>, Pit Kleyersburg <pitkley@googlemail.com>, \
|
contributors="Guy Addadi <addadi@gmail.com>, Pit Kleyersburg <pitkley@googlemail.com>, \
|
||||||
Sven Fischer <git-dev@linux4tw.de>"
|
Sven Fischer <git-dev@linux4tw.de>"
|
||||||
|
|
||||||
# Copy requirements file and init script
|
# Copy Pipfiles file and init script
|
||||||
COPY requirements.txt /usr/src/paperless/
|
COPY Pipfile* /usr/src/paperless/
|
||||||
COPY scripts/docker-entrypoint.sh /sbin/docker-entrypoint.sh
|
COPY scripts/docker-entrypoint.sh /sbin/docker-entrypoint.sh
|
||||||
|
|
||||||
# Set export and consumption directories
|
# Set export and consumption directories
|
||||||
@ -21,7 +21,8 @@ RUN apk update --no-cache && apk add python3 gnupg libmagic libpq bash shadow cu
|
|||||||
python3 -m ensurepip && \
|
python3 -m ensurepip && \
|
||||||
rm -r /usr/lib/python*/ensurepip && \
|
rm -r /usr/lib/python*/ensurepip && \
|
||||||
cd /usr/src/paperless && \
|
cd /usr/src/paperless && \
|
||||||
pip3 install --no-cache-dir -r requirements.txt && \
|
pip3 install --upgrade pip pipenv && \
|
||||||
|
pipenv install --system --deploy && \
|
||||||
# Remove build dependencies
|
# Remove build dependencies
|
||||||
apk del .build-dependencies && \
|
apk del .build-dependencies && \
|
||||||
# Create the consumption directory
|
# Create the consumption directory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user