2021-12-27 03:21:46 +01:00
|
|
|
FROM nimlang/nim:1.6.2-alpine-regular as nim
|
2020-10-01 05:41:47 +02:00
|
|
|
LABEL maintainer="setenforce@protonmail.com"
|
2019-10-10 19:55:16 +02:00
|
|
|
EXPOSE 8080
|
|
|
|
|
2020-11-15 03:58:08 +01:00
|
|
|
RUN apk --no-cache add libsass-dev libffi-dev openssl-dev redis openssh-client
|
2020-11-07 11:28:54 +01:00
|
|
|
|
2019-10-10 19:55:16 +02:00
|
|
|
COPY . /src/nitter
|
|
|
|
WORKDIR /src/nitter
|
|
|
|
|
2021-12-27 03:21:46 +01:00
|
|
|
RUN nimble build -y -d:release -d:danger --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-10-01 05:41:47 +02:00
|
|
|
FROM alpine:latest
|
2019-10-10 19:55:16 +02:00
|
|
|
WORKDIR /src/
|
2020-10-01 05:41:47 +02:00
|
|
|
RUN apk --no-cache add pcre sqlite
|
2021-12-27 03:21:46 +01:00
|
|
|
COPY --from=nim /src/nitter/nitter ./
|
|
|
|
COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf
|
2019-10-21 06:17:08 +02:00
|
|
|
COPY --from=nim /src/nitter/public ./public
|
2020-10-01 05:41:47 +02:00
|
|
|
CMD ./nitter
|