Add dockerfile & how to in README
parent
a4e1dba8b7
commit
497c14db81
|
@ -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
|
16
README.md
16
README.md
|
@ -150,6 +150,22 @@ uwsgi --http :9090 --plugin python --wsgi-file main.py
|
||||||
gunicorn morss:cgi_standalone_app
|
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
|
#### Using morss' internal HTTP server
|
||||||
|
|
||||||
Morss can run its own HTTP server. The later should start when you run morss
|
Morss can run its own HTTP server. The later should start when you run morss
|
||||||
|
|
Loading…
Reference in New Issue