1
0
mirror of https://github.com/zedeus/nitter synced 2024-12-04 07:10:11 +01:00
nitter/Dockerfile

20 lines
491 B
Docker
Raw Normal View History

2019-10-10 19:55:16 +02:00
FROM nimlang/nim:alpine as nim
MAINTAINER setenforce@protonmail.com
EXPOSE 8080
COPY . /src/nitter
WORKDIR /src/nitter
RUN apk update \
2019-10-12 20:29:55 +02:00
&& apk add libsass-dev libffi-dev openssl-dev \
2019-10-21 06:17:08 +02:00
&& nimble build -y -d:release --passC:"-flto" --passL:"-flto" \
&& strip -s nitter \
2019-10-12 20:29:55 +02:00
&& nimble scss
2019-10-10 19:55:16 +02:00
FROM alpine
WORKDIR /src/
2019-10-21 06:17:08 +02:00
RUN apk --no-cache add pcre-dev sqlite-dev
COPY --from=nim /src/nitter/nitter /src/nitter/nitter.conf ./
COPY --from=nim /src/nitter/public ./public
2019-10-10 19:55:16 +02:00
CMD ./nitter