-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
37 lines (32 loc) · 1012 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ocrd/core-cuda
ARG VCS_REF
ARG BUILD_DATE
LABEL \
maintainer="https://ocr-d.de/kontakt" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/bertsky/detectron2" \
org.label-schema.build-date=$BUILD_DATE
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONIOENCODING utf8
# avoid HOME/.local/share (hard to predict USER here)
# so let XDG_DATA_HOME coincide with fixed system location
# (can still be overridden by derived stages or at runtime)
# should be combined with a bind-mount at runtime
ENV XDG_DATA_HOME /usr/local/share
WORKDIR /build-ocrd
COPY setup.py .
COPY ocrd_detectron2/ocrd-tool.json .
COPY README.md .
COPY requirements.txt .
COPY requirements-test.txt .
COPY ocrd_detectron2 ./ocrd_detectron2
COPY Makefile .
RUN apt-get install -y --no-install-recommends g++ && \
make deps && \
make install && \
rm -rf /build-ocrd && \
apt-get -y remove --auto-remove g++
WORKDIR /data
VOLUME /data
# override Nvidia entrypoint
ENTRYPOINT []