diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..83ca33f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM python:2.7-slim + +RUN apt update +RUN apt upgrade -y +RUN apt install -y git gcc +RUN git clone https://github.com/maK-/parameth +WORKDIR parameth +RUN pip install -r requirements.txt + +ENTRYPOINT ["python", "parameth.py"] diff --git a/README.md b/README.md index c20388a..0c9e7bd 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,27 @@ virtualenv venv pip install -u -r requirements.txt ``` +## Docker + +If you don't want to install dependencies on your machine, you could just use docker. + +```shell +cd /path/to/parameth +docker build -t parameth . +docker run -it --rm --name parameth1 parameth +``` + +You can also create a shell script instead of running `docker run` all the time: + +`vim /usr/bin/parameth` + +```shell +#!/bin/bash +docker run -it --rm --name parameth1 $@ +``` + +`chmod +x /usr/bin/parameth` + # Usage