Skip to content

Commit

Permalink
Add Docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
beucismis committed Apr 29, 2023
1 parent 967b589 commit b00649f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b00649f

Please sign in to comment.