浏览代码

Add basic instructions for running in a container.

Stefano Cossu 2 年之前
父节点
当前提交
667f17a15b
共有 1 个文件被更改,包括 25 次插入1 次删除
  1. 25 1
      README.md

+ 25 - 1
README.md

@@ -1 +1,25 @@
-# transliterator
+# transliterator
+
+REST API service to convert non-Latin scripts to Latin, and vice versa.
+
+## Run on Docker
+
+Build container in current dir:
+
+```
+docker build -t transliterator:latest .
+```
+
+Start container:
+
+```
+docker run -e TXL_FLASK_SECRET=changeme -p 8000:8000 transliterator:latest
+```
+
+Test service:
+
+```
+curl localhost:8000/health
+```
+
+TODO: API endpoints are stubs at the moment.