@@ -1,4 +1,4 | |||
|
1 |
FROM python: |
|
|
1 | FROM python:3.7-slim | |
|
2 | 2 | |
|
3 | 3 | RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommends \ |
|
4 | 4 | git \ |
@@ -10,7 +10,7 RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommend | |||
|
10 | 10 | libatlas-base-dev \ |
|
11 | 11 | libssl-dev \ |
|
12 | 12 | libhdf5-dev \ |
|
13 |
&& git clone --branch v |
|
|
13 | && git clone --branch v3.0-devel --depth 1 \ | |
|
14 | 14 | http://jro-dev.igp.gob.pe/rhodecode/schain \ |
|
15 | 15 | && pip install numpy \ |
|
16 | 16 | && cd schain \ |
@@ -46,7 +46,7 $ docker build -t schain . | |||
|
46 | 46 | You can run a container using an xml file or a schain script also you need to mount a volume for the data input and for the output files/plots |
|
47 | 47 | ``` |
|
48 | 48 | $ docker run -it --rm --volume /path/to/host/data:/data schain xml /data/test.xml |
|
49 |
$ docker run -it --rm --volume /path/to/host/data:/data --entrypoint |
|
|
49 | $ docker run -it --rm --volume /path/to/host/data:/data --entrypoint /urs/local/bin/python schain /data/test.py | |
|
50 | 50 | ``` |
|
51 | 51 | |
|
52 | 52 | ## First Script |
General Comments 0
You need to be logged in to leave comments.
Login now