Skip to content

Commit

Permalink
improve-docker-build
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored Oct 1, 2024
1 parent a3f25d7 commit ea98c5e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ocrd/core

ARG DOCKER_BASE_IMAGE
FROM $DOCKER_BASE_IMAGE
ARG VCS_REF
ARG BUILD_DATE
LABEL \
Expand All @@ -13,15 +13,19 @@ ENV PREFIX=/usr/local

RUN apt-get update && apt-get install -y openjdk-11-jdk-headless wget git gcc unzip

WORKDIR /build
WORKDIR /build/ocrd_fileformat

COPY .git .git/
COPY repo/ocr-fileformat repo/ocr-fileformat/
COPY ocrd-fileformat-transform .
COPY ocrd-tool.json .
COPY Makefile .
RUN make install-fileformat install PREFIX=/usr/local SHELL="bash -x"

RUN make install-fileformat install PREFIX=$PREFIX SHELL="bash -x" && \
rm -fr /build/ocrd_fileformat
# smoke test
RUN ocrd-fileformat-transform --version

WORKDIR /data
ENV DEBIAN_FRONTEND teletype
CMD ["/usr/local/bin/ocrd-fileformat-transform", "--help"]

0 comments on commit ea98c5e

Please sign in to comment.