2020-11-10 14:47:06 +00:00
|
|
|
FROM nimlang/nim:alpine as nim
|
2019-10-10 17:55:16 +00:00
|
|
|
MAINTAINER setenforce@protonmail.com
|
|
|
|
EXPOSE 8080
|
|
|
|
|
2020-11-15 02:58:08 +00:00
|
|
|
RUN apk --no-cache add libsass-dev libffi-dev openssl-dev redis openssh-client
|
2020-11-07 10:28:54 +00:00
|
|
|
|
2019-10-10 17:55:16 +00:00
|
|
|
COPY . /src/nitter
|
|
|
|
WORKDIR /src/nitter
|
|
|
|
|
2020-11-07 10:28:54 +00:00
|
|
|
RUN nimble build -y -d:release --passC:"-flto" --passL:"-flto" \
|
2019-10-21 04:17:08 +00:00
|
|
|
&& strip -s nitter \
|
2019-10-12 18:29:55 +00:00
|
|
|
&& nimble scss
|
2019-10-10 17:55:16 +00:00
|
|
|
|
2021-08-18 17:39:57 +00:00
|
|
|
FROM redis:6-alpine
|
2019-10-10 17:55:16 +00:00
|
|
|
WORKDIR /src/
|
2019-10-21 04:17:08 +00:00
|
|
|
RUN apk --no-cache add pcre-dev sqlite-dev
|
2020-06-01 03:08:11 +00:00
|
|
|
COPY --from=nim /src/nitter/nitter /src/nitter/start.sh /src/nitter/nitter.conf ./
|
2019-10-21 04:17:08 +00:00
|
|
|
COPY --from=nim /src/nitter/public ./public
|
2020-11-07 10:35:55 +00:00
|
|
|
CMD ["./start.sh"]
|