mirror of
https://github.com/mikegerber/ocrd_calamari.git
synced 2025-06-09 19:59:53 +02:00
Dockerfile
This commit is contained in:
parent
3e8c1ac338
commit
3b05dd5bd7
2 changed files with 47 additions and 0 deletions
28
Makefile
28
Makefile
|
@ -1,11 +1,39 @@
|
|||
GIT_CLONE = git clone --depth 1
|
||||
|
||||
# Docker tag
|
||||
DOCKER_TAG = ocrd/calamari
|
||||
|
||||
# BEGIN-EVAL makefile-parser --make-help Makefile
|
||||
|
||||
help:
|
||||
@echo ""
|
||||
@echo " Targets"
|
||||
@echo ""
|
||||
@echo " calamari git clone calamari"
|
||||
@echo " calamari_models git clone calamari_models"
|
||||
@echo " calamari/build Install calamari"
|
||||
@echo " docker Build docker image"
|
||||
@echo ""
|
||||
@echo " Variables"
|
||||
@echo ""
|
||||
@echo " DOCKER_TAG Docker tag"
|
||||
|
||||
# END-EVAL
|
||||
|
||||
# git clone calamari
|
||||
calamari:
|
||||
$(GIT_CLONE) https://github.com/chwick/calamari
|
||||
|
||||
# git clone calamari_models
|
||||
calamari_models:
|
||||
$(GIT_CLONE) https://github.com/chwick/calamari_models
|
||||
|
||||
# Install calamari
|
||||
calamari/build: calamari calamari_models
|
||||
cd calamari &&\
|
||||
pip install -r requirements.txt ;\
|
||||
python setup.py install
|
||||
|
||||
# Build docker image
|
||||
docker:
|
||||
docker build -t '$(DOCKER_TAG)' .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue