Skip to content

Commit 455ed5b

Browse files
Add docker file and related instructions in the README file
1 parent 176bf56 commit 455ed5b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM python:3
2+
3+
WORKDIR /usr/src/app
4+
COPY . ./
5+
COPY schema.ttl ./
6+
RUN pip3.10 install --no-cache-dir -r requirements.txt

README.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,18 @@ Basic Use
113113
This will produce the file ``minimal.html`` in this directory which should
114114
match exactly the file ``examples/minimal.html``.
115115

116+
* as a docker container
117+
118+
build the docker image
119+
::
120+
docker build -t pylode:latest .
121+
122+
copy the example directory, mount it to the countainer and run cli.py in the container
123+
::
124+
docker run --mount 'type=bind,src=<ttl_directory>,target=/app/pylode/data' pylode:latest python3.10 pylode/cli.py data/<ttl_file> -o data/<html_file>
125+
126+
Note: <ttl_directory> must be absolute
127+
116128
Module Use
117129
^^^^^^^^^^
118130

0 commit comments

Comments
 (0)