Skip to content

Commit aff9590

Browse files
author
7048730
committed
add dockerfile
1 parent a261b7a commit aff9590

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM frolvlad/alpine-python3
2+
MAINTAINER <https://github.com/o2r-project>
3+
4+
RUN apk add python3-dev g++ gcc libxml2-dev libxslt-dev --update-cache
5+
RUN apk add gdal gdal-dev py-gdal --update-cache --repository http://nl.alpinelinux.org/alpine/edge/testing
6+
RUN apk add git
7+
RUN git clone --depth 1 -b master https://github.com/o2r-project/o2r-meta.git
8+
WORKDIR /o2r-meta
9+
RUN pip install -r requirements.txt
10+
RUN apk del git py-pip
11+
12+
ENTRYPOINT ["python3"]

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ Alternatively you can use a precompiled python wheel of the gdal module that fit
4747

4848
pip install -r requirements.txt
4949

50+
51+
### Using Docker
52+
53+
Another way of installation is provided by the Dockerfile. Build it like this:
54+
55+
docker build -t meta .
56+
57+
And start the extractor (e.g.) like this:
58+
59+
docker run meta o2rmeta.py -debug extract -i extract/tests -o extract/tests -xo
60+
61+
5062

5163
## Usage
5264

0 commit comments

Comments
 (0)