diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..53bca1a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3 + +WORKDIR /usr/src/nhentai +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . +RUN python setup.py install + +WORKDIR /output +ENTRYPOINT ["nhentai"] diff --git a/README.rst b/README.rst index 2620e21..99533d7 100644 --- a/README.rst +++ b/README.rst @@ -14,12 +14,23 @@ nHentai is a CLI tool for downloading doujinshi from =================== Manual Installation =================== +From Github: + .. code-block:: git clone https://github.com/RicterZ/nhentai cd nhentai python setup.py install +Use Docker : + +.. code-block:: + + git clone https://github.com/RicterZ/nhentai + cd nhentai + docker build -t nhentai:latest . + docker run -v ~/Downloads/doujinshi:/output -v ~/.nhentai/:/root/.nhentai nhentai --id 123855 + ================== Installation (pip) ==================