Skip to content

Commit

Permalink
更新nitter
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix2yu committed Feb 22, 2024
1 parent 9047676 commit b7653f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nitter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nimlang/nim:2.0.0-alpine-regular as builder
FROM nimlang/nim:2.0.2-alpine-regular as builder
LABEL org.opencontainers.image.source = "https://github.com/Felix2yu/docker_build" \
maintainer="Felix2yu <yufei.im@icloud.com>" \
org.opencontainers.image.authors="Felix2yu <yufei.im@icloud.com>"
Expand All @@ -7,8 +7,7 @@ RUN apk --no-cache add libsass-dev pcre

WORKDIR /src/nitter

RUN git clone https://github.com/zedeus/nitter . && \
git checkout guest_accounts && \
RUN git clone https://github.com/PrivacyDevel/nitter . && \
nimble install -y --depsOnly && \
nimble build -d:danger -d:lto -d:strip && \
nimble scss && \
Expand All @@ -23,4 +22,4 @@ COPY --from=builder /src/nitter/public ./public
EXPOSE 8080
RUN adduser -h /app/ -u 1000 -D -G users -s /bin/sh nitter
USER nitter
CMD ./nitter
CMD ["/app/nitter"]

0 comments on commit b7653f2

Please sign in to comment.