forked from zedeus/nitter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a working docker-compose file.
- Loading branch information
1 parent
5e5e290
commit bacc1cb
Showing
5 changed files
with
34 additions
and
12 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM nimlang/nim:alpine as nim | ||
MAINTAINER [email protected] | ||
LABEL maintainer="[email protected]" | ||
EXPOSE 8080 | ||
|
||
RUN apk --no-cache add libsass-dev libffi-dev openssl-dev redis openssh-client | ||
|
@@ -11,9 +11,9 @@ RUN nimble build -y -d:release --passC:"-flto" --passL:"-flto" \ | |
&& strip -s nitter \ | ||
&& nimble scss | ||
|
||
FROM redis:6-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 sqlite | ||
COPY --from=nim /src/nitter/nitter /src/nitter/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
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