Dockerfile: use local copy of application
This commit is contained in:
+6
-1
@@ -5,4 +5,9 @@ include/
|
||||
lib/
|
||||
ocrmypdf.egg-info/
|
||||
staging/
|
||||
.git/
|
||||
.git/
|
||||
.ruffus_history.sqlite
|
||||
MANIFEST.in
|
||||
*.sublime*
|
||||
*.pdf
|
||||
*.rst
|
||||
+4
-3
@@ -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"]
|
||||
Reference in New Issue
Block a user