2019-10-10 17:55:16 +00:00
|
|
|
FROM nimlang/nim:alpine as nim
|
|
|
|
MAINTAINER setenforce@protonmail.com
|
|
|
|
EXPOSE 8080
|
2019-10-17 22:10:40 +00:00
|
|
|
ARG HOSTNAME
|
|
|
|
ENV HOSTNAME ${HOSTNAME:-nitter.net}
|
2019-10-10 17:55:16 +00:00
|
|
|
|
|
|
|
COPY . /src/nitter
|
|
|
|
WORKDIR /src/nitter
|
|
|
|
|
|
|
|
RUN apk update \
|
2019-10-12 18:29:55 +00:00
|
|
|
&& apk add libsass-dev libffi-dev openssl-dev \
|
2019-10-10 17:55:16 +00:00
|
|
|
&& nimble build -y -d:release -d:hostname=${HOSTNAME} \
|
2019-10-12 18:29:55 +00:00
|
|
|
&& nimble scss
|
2019-10-10 17:55:16 +00:00
|
|
|
|
|
|
|
FROM alpine
|
|
|
|
WORKDIR /src/
|
|
|
|
COPY --from=nim /src/nitter .
|
|
|
|
RUN apk add pcre-dev sqlite-dev
|
|
|
|
CMD ./nitter
|