diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e75f2bd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM alpine:latest + +RUN apk add python3 py3-lxml py3-pip git + +RUN pip3 install gunicorn +RUN pip3 install git+https://git.pictuga.com/pictuga/morss.git@master + +CMD gunicorn --bind 0.0.0.0:8000 -w 4 morss:cgi_standalone_app diff --git a/README.md b/README.md index 7780f3f..cd24398 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,22 @@ uwsgi --http :9090 --plugin python --wsgi-file main.py gunicorn morss:cgi_standalone_app ``` +#### Using docker + +Build + +```shell +docker build https://git.pictuga.com/pictuga/morss.git +``` + +Run & Build in one go + +```shell +docker run --rm $(docker build -q https://git.pictuga.com/pictuga/morss.git) +``` + +It will run on port 8000 by default + #### Using morss' internal HTTP server Morss can run its own HTTP server. The later should start when you run morss