-
-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into thread-rss
- Loading branch information
Showing
68 changed files
with
861 additions
and
493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*.png | ||
*.md | ||
LICENSE | ||
docker-compose.yml | ||
Dockerfile | ||
tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
FROM nimlang/nim:alpine as nim | ||
MAINTAINER [email protected] | ||
FROM nimlang/nim:1.6.2-alpine-regular as nim | ||
LABEL maintainer="[email protected]" | ||
EXPOSE 8080 | ||
|
||
RUN apk --no-cache add libsass-dev libffi-dev openssl-dev redis openssh-client | ||
RUN apk --no-cache add libsass-dev | ||
|
||
COPY . /src/nitter | ||
WORKDIR /src/nitter | ||
|
||
RUN nimble build -y -d:release --passC:"-flto" --passL:"-flto" \ | ||
RUN nimble build -y -d:release -d:danger --passC:"-flto" --passL:"-flto" \ | ||
&& strip -s nitter \ | ||
&& nimble scss | ||
|
||
FROM redis:6.0.4-alpine | ||
FROM alpine:latest | ||
WORKDIR /src/ | ||
RUN apk --no-cache add pcre-dev sqlite-dev | ||
COPY --from=nim /src/nitter/nitter /src/nitter/start.sh /src/nitter/nitter.conf ./ | ||
RUN apk --no-cache add pcre | ||
COPY --from=nim /src/nitter/nitter ./ | ||
COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf | ||
COPY --from=nim /src/nitter/public ./public | ||
CMD ["./start.sh"] | ||
CMD ./nitter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: "3.8" | ||
services: | ||
redis: | ||
image: redis:6-alpine | ||
restart: unless-stopped | ||
volumes: | ||
- redis-data:/var/lib/redis | ||
nitter: | ||
image: zedeus/nitter:latest | ||
restart: unless-stopped | ||
depends_on: | ||
- redis | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- ./nitter.conf:/src/nitter.conf | ||
volumes: | ||
redis-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.