Skip to content

Commit

Permalink
Merge pull request #1 from weidi/testing
Browse files Browse the repository at this point in the history
clean up unneeded tar file
  • Loading branch information
weidi authored Feb 1, 2018
2 parents 612c0f3 + 233360e commit faa6c4c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
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"]

0 comments on commit faa6c4c

Please sign in to comment.