Skip to content

Commit

Permalink
Merge pull request #1172 from OCR-D/fix-docker
Browse files Browse the repository at this point in the history
fix docker builds
  • Loading branch information
kba authored Jan 23, 2024
2 parents dd4c529 + 67f9253 commit 1590777
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*
!ocrd*
!src*
!pyproject.toml
!Makefile
!VERSION
!LICENSE
Expand Down
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@ ENV LANG=C.UTF-8
ENV PIP=pip

WORKDIR /build-ocrd
COPY ocrd ./ocrd
COPY ocrd_modelfactory ./ocrd_modelfactory/
COPY ocrd_models ./ocrd_models
COPY ocrd_utils ./ocrd_utils

COPY src ./src
COPY pyproject.toml .
COPY VERSION ./VERSION
RUN mv ./ocrd_utils/ocrd_logging.conf /etc
COPY ocrd_validators/ ./ocrd_validators
COPY ocrd_network/ ./ocrd_network
RUN mv ./src/ocrd_utils/ocrd_logging.conf /etc
COPY Makefile .
COPY README.md .
COPY LICENSE .
COPY .git ./.git

RUN echo 'APT::Install-Recommends "0"; APT::Install-Suggests "0";' >/etc/apt/apt.conf.d/ocr-d.conf
RUN apt-get update && apt-get -y install software-properties-common \
&& apt-get update && apt-get -y install \
Expand All @@ -37,7 +35,6 @@ RUN apt-get update && apt-get -y install software-properties-common \
&& make deps-ubuntu \
&& python3 -m venv /usr/local \
&& hash -r \
&& pip install --upgrade pip setuptools wheel \
&& make install \
&& eval $FIXUP \
&& rm -rf /build-ocrd
Expand Down

0 comments on commit 1590777

Please sign in to comment.