-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from weidi/testing
clean up unneeded tar file
- Loading branch information
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
FROM debian as builder | ||
LABEL version="0.3" | ||
|
||
RUN apt-get update && apt-get install gradle \ | ||
default-jdk \ | ||
git \ | ||
tesseract-ocr -y | ||
|
||
RUN git clone https://github.com/Audiveris/audiveris.git && cd audiveris && gradle clean build -x test | ||
RUN mkdir /Audiveris && tar -xvf /audiveris/build/distributions/Audiveris.tar -C /Audiveris | ||
|
||
|
||
FROM debian | ||
COPY --from=builder /audiveris/build/distributions/Audiveris.tar . | ||
FROM debian:stable-slim | ||
COPY --from=builder /Audiveris/ / | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends \ | ||
RUN mkdir -p /usr/share/man/man1 && apt-get update && apt-get install --no-install-recommends \ | ||
tesseract-ocr \ | ||
tesseract-ocr-eng \ | ||
tesseract-ocr-deu \ | ||
tesseract-ocr-fra \ | ||
openjdk-8-jre-headless -y && tar -xvf Audiveris.tar && \ | ||
openjdk-8-jre-headless -y && \ | ||
rm /etc/java-8-openjdk/accessibility.properties | ||
|
||
CMD ["sh", "-c", "/Audiveris/bin/Audiveris -batch -export -output /output /input/*.pdf"] |