diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..44a0acd --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index 24c7bf4..6df5de3 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/TODO.md b/TODO.md index 34221ab..e58aed0 100644 --- a/TODO.md +++ b/TODO.md @@ -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