File tree Expand file tree Collapse file tree 2 files changed +35013
-6
lines changed
Expand file tree Collapse file tree 2 files changed +35013
-6
lines changed Original file line number Diff line number Diff line change 1- FROM nimlang/nim:2.2.0- alpine-regular as nim
1+ FROM alpine:latest as nim
22LABEL maintainer="setenforce@protonmail.com"
33
4- RUN apk --no-cache add libsass-dev pcre
4+ RUN apk --no-cache add gcc git libc-dev libsass-dev "nim=1.6.8-r0" nimble pcre
5+
6+ COPY packages.json ~/.nimble/packages.json
57
68WORKDIR /src/nitter
79
810COPY nitter.nimble .
911RUN nimble install -y --depsOnly
1012
1113COPY . .
12- RUN nimble build -d:danger -d:lto -d:strip --mm:refc \
14+ RUN nimble build -d:danger -d:lto -d:strip \
1315 && nimble scss \
1416 && nimble md
1517
1618FROM alpine:latest
1719WORKDIR /src/
18- RUN apk --no-cache add pcre ca-certificates
20+ RUN apk --no-cache add ca-certificates pcre openssl1.1-compat
1921COPY --from=nim /src/nitter/nitter ./
2022COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf
2123COPY --from=nim /src/nitter/public ./public
2224EXPOSE 8080
23- RUN adduser -h /src/ -D -s /bin/sh nitter
24- USER nitter
2525CMD ./nitter
You can’t perform that action at this time.
0 commit comments