Browse Source

Optdeps in REAMDE and Dockerfile

pictuga 1 week ago
parent
commit
e7bee5b7e2
  1. 2
      Dockerfile
  2. 25
      README.md

2
Dockerfile

@ -3,6 +3,6 @@ FROM alpine:latest
RUN apk add --no-cache python3 py3-lxml py3-pip py3-wheel git
ADD . /app
RUN pip3 install --no-cache-dir /app gunicorn
RUN pip3 install --no-cache-dir /app[full] gunicorn
CMD gunicorn --bind 0.0.0.0:8080 -w 4 --preload --access-logfile - morss

25
README.md

@ -48,27 +48,24 @@ Some features of morss:
### Python package
Simple install (without optional dependencies)
```shell
pip install git+https://git.pictuga.com/pictuga/morss.git
```
The dependency `lxml` is fairly long to install (especially on Raspberry Pi, as
C code needs to be compiled). If possible on your distribution, try installing
it with the system package manager.
Full installation (including optional dependencies)
Dependencies:
```shell
pip install git+https://git.pictuga.com/pictuga/morss.git#[full]
```
- [python](http://www.python.org/) >= 2.6 (python 3 is supported)
- [lxml](http://lxml.de/) for xml parsing
- [bs4](https://pypi.org/project/bs4/) for badly-formatted html pages
- [dateutil](http://labix.org/python-dateutil) to parse feed dates
- [chardet](https://pypi.python.org/pypi/chardet)
- [six](https://pypi.python.org/pypi/six), a dependency of chardet
- pymysql
The full install includes mysql (possible cache backend). Otherwise, only
in-memory and sqlite3 caches are available.
You may also need:
- Apache, with python-cgi support, to run on a server
- a fast internet connection
The dependency `lxml` is fairly long to install (especially on Raspberry Pi, as
C code needs to be compiled). If possible on your distribution, try installing
it with the system package manager.
### Docker

Loading…
Cancel
Save