2021-12-27 02:21:46 +00:00
|
|
|
FROM nimlang/nim:1.6.2-alpine-regular as nim
|
2020-10-01 03:41:47 +00:00
|
|
|
LABEL maintainer="setenforce@protonmail.com"
|
2019-10-10 17:55:16 +00:00
|
|
|
|
2022-01-09 22:14:01 +00:00
|
|
|
RUN apk --no-cache add libsass-dev pcre
|
2020-11-07 10:28:54 +00:00
|
|
|
|
2019-10-10 17:55:16 +00:00
|
|
|
WORKDIR /src/nitter
|
|
|
|
|
2022-01-27 04:50:29 +00:00
|
|
|
COPY nitter.nimble .
|
2022-01-30 16:29:19 +00:00
|
|
|
RUN nimble install -y --depsOnly
|
2022-01-27 04:50:29 +00:00
|
|
|
|
|
|
|
COPY . .
|
2022-01-30 16:29:19 +00:00
|
|
|
RUN nimble build -d:danger -d:lto -d:strip \
|
2022-01-09 22:14:01 +00:00
|
|
|
&& nimble scss \
|
|
|
|
&& nimble md
|
2019-10-10 17:55:16 +00:00
|
|
|
|
2020-10-01 03:41:47 +00:00
|
|
|
FROM alpine:latest
|
2019-10-10 17:55:16 +00:00
|
|
|
WORKDIR /src/
|
2022-04-02 00:54:58 +00:00
|
|
|
RUN apk --no-cache add pcre ca-certificates
|
2021-12-27 02:21:46 +00:00
|
|
|
COPY --from=nim /src/nitter/nitter ./
|
|
|
|
COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf
|
2019-10-21 04:17:08 +00:00
|
|
|
COPY --from=nim /src/nitter/public ./public
|
2022-04-01 23:37:02 +00:00
|
|
|
EXPOSE 8080
|
2020-10-01 03:41:47 +00:00
|
|
|
CMD ./nitter
|