Add Docker support

pull/3/head
beucismis 1 year ago
parent 967b589fa5
commit b00649f4a9
  1. 11
      Dockerfile
  2. 17
      README.md
  3. 2
      TODO.md

@ -0,0 +1,11 @@
FROM python:3.8-alpine
WORKDIR /app
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY . .
EXPOSE 80
CMD [ "python3", "-m", "gunicorn", "-b", "0.0.0.0:80"]

@ -9,21 +9,34 @@ Free alternative simple ekşi sözlük front-end. Offical instance: http://ozgur
## Features
- No JavaScript
- Docker support
- Topic searching
- Entry sorting options
- View topic, entry and author
- Gündem and debe page support
- Optioanl dispaying author nickname
- Ad-free, simple and fast
- 8 different theme support
- Self-hosted, ad-free, simple and fast
- Responsive support for small screens
## Installing and Running
Clone the repository:
```
git clone https://github.com/beucismis/ozgursozluk
cd ozgursozluk/
```
Normal running:
```
pip3 install -r requirements.txt
gunicorn # or gunicorn --bind 0.0.0.0:3131
gunicorn
```
Deploy using a different port: `gunicorn --bind 0.0.0.0:3131`
Running with Docker:
```
docker build -t ozgursozluk .
docker run -p 3131:80 ozgursozluk
```
## Preview

@ -1,6 +1,6 @@
## ToDo
- [ ] API endpoint
- [ ] Docker support
- [x] Docker support
- [x] Page support for debe
- [ ] Author page and last entrys
- [ ] Optioanl displaying for pinned

Loading…
Cancel
Save