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