mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-01-06 04:01:25 +00:00
Works
This commit is contained in:
parent
b3ee743ed7
commit
898b2b000a
15
Dockerfile
15
Dockerfile
@ -33,11 +33,18 @@ RUN apt-get install -y wget
|
||||
# Ubuntu 14.04's ensurepip is broken
|
||||
# http://www.thefourtheye.in/2014/12/Python-venv-problem-with-ensurepip-in-Ubuntu.html
|
||||
|
||||
RUN python3 -m venv . --without-pip
|
||||
RUN /bin/bash -c "source ./bin/activate \
|
||||
&& wget -O - -o /dev/null https://bootstrap.pypa.io/get-pip.py | python \
|
||||
&& deactivate"
|
||||
RUN python3 -m venv appenv --without-pip
|
||||
RUN . /appenv/bin/activate; \
|
||||
wget -O - -o /dev/null https://bootstrap.pypa.io/get-pip.py | python
|
||||
|
||||
RUN apt-get install -y gcc python3-dev
|
||||
|
||||
RUN . /appenv/bin/activate; \
|
||||
pip install https://github.com/fritz-hh/ocrmypdf/zipball/master
|
||||
|
||||
USER docker
|
||||
WORKDIR /home/docker
|
||||
ADD docker-wrapper.sh /home/docker/docker-wrapper.sh
|
||||
|
||||
# Must use array form of ENTRYPOINT because Docker loves arbitrary and stupid rules
|
||||
ENTRYPOINT ["/home/docker/docker-wrapper.sh"]
|
||||
5
docker-wrapper.sh
Executable file
5
docker-wrapper.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
. /appenv/bin/activate
|
||||
cd /home/docker
|
||||
exec ocrmypdf "$@"
|
||||
Loading…
x
Reference in New Issue
Block a user