Skip to content

Commit

Permalink
Merge pull request #9 from bertsky/update-docker
Browse files Browse the repository at this point in the history
docker: rebase on ocrd/core, no fixed entrypoint
  • Loading branch information
kba authored Nov 29, 2019
2 parents b567f52 + 1b082f0 commit 6d9d0af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
FROM ocrd/core:edge
FROM ocrd/core
MAINTAINER OCR-D
ENV DEBIAN_FRONTEND noninteractive

ENV PREFIX=/usr/local

WORKDIR /build
COPY ocrd-im6convert .
COPY ocrd-tool.json .
COPY Makefile .

RUN apt-get update && \
apt-get -y install apt-utils && \
apt-get -y install --no-install-recommends \
ca-certificates \
make \
imagemagick
make

RUN make deps-ubuntu install

RUN make install PREFIX=/usr/local
ENV DEBIAN_FRONTEND teletype

ENTRYPOINT ["/usr/local/bin/ocrd-im6convert"]
# no fixed entrypoint (e.g. also allow `convert` etc)
CMD ["/usr/local/bin/ocrd-im6convert", "--help"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ help:

# Install system packages (for use with containers)
deps-ubuntu:
apt-get install imagemagick
apt-get -y install imagemagick

# Install python packages
deps:
Expand Down

0 comments on commit 6d9d0af

Please sign in to comment.