From fe443a4229807f9453441e4c3b50f89b4d3e2de2 Mon Sep 17 00:00:00 2001
From: Ricter Z <ricterzheng@gmail.com>
Date: Mon, 6 Feb 2023 00:22:23 +0800
Subject: [PATCH] add Dockerfile

---
 Dockerfile | 11 +++++++++++
 README.rst | 11 +++++++++++
 2 files changed, 22 insertions(+)
 create mode 100644 Dockerfile

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 <http://nhentai.net>
 ===================
 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)
 ==================