mirror of https://github.com/zedeus/nitter
add dockerfile
This commit is contained in:
parent
1ac389e7c7
commit
def0ecd563
|
@ -0,0 +1,27 @@
|
||||||
|
FROM nimlang/nim:1.6.10-alpine-regular as nim
|
||||||
|
LABEL maintainer="setenforce@protonmail.com"
|
||||||
|
|
||||||
|
ARG REPO_PATH=./services/open-sources-search-services/nitter
|
||||||
|
|
||||||
|
RUN apk --no-cache add libsass-dev pcre
|
||||||
|
|
||||||
|
WORKDIR /src/nitter
|
||||||
|
|
||||||
|
COPY ${REPO_PATH}/nitter.nimble .
|
||||||
|
RUN nimble install -y --depsOnly
|
||||||
|
|
||||||
|
COPY ${REPO_PATH}/. .
|
||||||
|
RUN nimble build -d:danger -d:lto -d:strip \
|
||||||
|
&& nimble scss \
|
||||||
|
&& nimble md
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
WORKDIR /src/
|
||||||
|
RUN apk --no-cache add pcre ca-certificates
|
||||||
|
COPY --from=nim /src/nitter/nitter ./
|
||||||
|
COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf
|
||||||
|
COPY --from=nim /src/nitter/public ./public
|
||||||
|
EXPOSE 8080
|
||||||
|
RUN adduser -h /src/ -D -s /bin/sh nitter
|
||||||
|
USER nitter
|
||||||
|
CMD ./nitter
|
Loading…
Reference in New Issue