Dockerfile: use local copy of application

This commit is contained in:
James R. Barlow
2015-08-19 13:10:58 -07:00
parent 630e6cbf1e
commit c132e091e1
2 changed files with 10 additions and 4 deletions
+6 -1
View File
@@ -5,4 +5,9 @@ include/
lib/
ocrmypdf.egg-info/
staging/
.git/
.git/
.ruffus_history.sqlite
MANIFEST.in
*.sublime*
*.pdf
*.rst
+4 -3
View File
@@ -41,10 +41,11 @@ RUN . /appenv/bin/activate; \
RUN apt-get install -y gcc python3-dev
COPY . /application/
RUN . /appenv/bin/activate; \
pip install https://github.com/fritz-hh/ocrmypdf/zipball/master
pip install /application/.
ADD docker-wrapper.sh /docker-wrapper.sh
USER docker
WORKDIR /home/docker
@@ -52,4 +53,4 @@ ENV DEFAULT_RUFFUS_HISTORY_FILE=/tmp/.{basename}.ruffus_history.sqlite
# Must use array form of ENTRYPOINT
# Non-array form does not append other arguments, because that is "intuitive"
ENTRYPOINT ["/docker-wrapper.sh"]
ENTRYPOINT ["/application/docker-wrapper.sh"]