Skip to content

Commit

Permalink
slimmed down the resulting image
Browse files Browse the repository at this point in the history
Used debian:latest-slim and moved untaring to the builder container
  • Loading branch information
weidi authored Feb 1, 2018
1 parent 9a6ee3d commit 233360e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +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 && \
rm /etc/java-8-openjdk/accessibility.properties && \
rm 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 233360e

Please sign in to comment.