Add dockerfile & how to in README

master
pictuga 2020-04-18 17:04:44 +02:00
parent a4e1dba8b7
commit 497c14db81
2 changed files with 24 additions and 0 deletions

8
Dockerfile 100644
View File

@ -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

View File

@ -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