Skip to content

Commit

Permalink
Add docker instructions to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Oct 17, 2019
1 parent 1877b4f commit 089cea0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM nimlang/nim:alpine as nim
MAINTAINER [email protected]
EXPOSE 8080
ENV HOSTNAME nitter.net
ARG HOSTNAME
ENV HOSTNAME ${HOSTNAME:-nitter.net}

COPY . /src/nitter
WORKDIR /src/nitter
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ Set your port and page title in `nitter.conf`, then run Nitter by executing `./n
You should run Nitter behind a reverse proxy such as
[Nginx](https://github.com/zedeus/nitter/wiki/Nginx) or Apache for better security.

To build and run Nitter in Docker:
```bash
docker build -t nitter:latest --build-arg HOSTNAME=nitter.net .
docker run -d -p 8080:8080 nitter:latest
```

To run Nitter via systemd you can use this service file:

```bash
Expand Down
12 changes: 6 additions & 6 deletions tests/test_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@
'',
'www.tesla.com', True],

['mobile_test/status/490378953744318464',
'Nantasket Beach',
'Rocks on the beach.',
'500px.com', True],

['voidtarget/status/1094632512926605312',
'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too)',
'Basic OBS Studio plugin, written in nim, supporting C++ (C fine too) - obsplugin.nim',
Expand All @@ -73,7 +68,12 @@
['brent_p/status/1088857328680488961',
'Hts Nim Sugar',
'hts-nim is a library that allows one to use htslib via the nim programming language. Nim is a garbage-collected language that compiles to C and often has similar performance. I have become very...',
'brentp.github.io']
'brentp.github.io'],

['mobile_test/status/490378953744318464',
'Nantasket Beach',
'Rocks on the beach.',
'500px.com']
]

playable = [
Expand Down

0 comments on commit 089cea0

Please sign in to comment.