Skip to content

Commit 4d50919

Browse files
committedFeb 5, 2025
Update Dockerfiles
1 parent 6fcd849 commit 4d50919

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
 

‎.github/workflows/run-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
strategy:
1515
matrix:
1616
nim:
17-
- "1.6.10"
1817
- "1.6.x"
1918
- "2.0.x"
19+
- "2.2.x"
2020
- "devel"
2121
steps:
2222
- uses: actions/checkout@v3
@@ -49,7 +49,7 @@ jobs:
4949
sed -i 's/enableDebug = false/enableDebug = true/g' nitter.conf
5050
nimble md
5151
nimble scss
52-
echo '${{ secrets.GUEST_ACCOUNTS }}' > ./guest_accounts.jsonl
52+
echo '${{ secrets.SESSIONS }}' > ./sessions.jsonl
5353
- name: Run tests
5454
run: |
5555
./nitter &

‎Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nimlang/nim:2.0.0-alpine-regular as nim
1+
FROM nimlang/nim:2.2.0-alpine-regular as nim
22
LABEL maintainer="setenforce@protonmail.com"
33

44
RUN apk --no-cache add libsass-dev pcre
@@ -9,7 +9,7 @@ COPY nitter.nimble .
99
RUN nimble install -y --depsOnly
1010

1111
COPY . .
12-
RUN nimble build -d:danger -d:lto -d:strip \
12+
RUN nimble build -d:danger -d:lto -d:strip --mm:refc \
1313
&& nimble scss \
1414
&& nimble md
1515

‎Dockerfile.arm64

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
FROM alpine:3.18 as nim
1+
FROM alpine:3.21.2 as nim
22
LABEL maintainer="setenforce@protonmail.com"
33

4-
RUN apk --no-cache add libsass-dev pcre gcc git libc-dev "nim=1.6.14-r0" "nimble=0.13.1-r2"
4+
RUN apk --no-cache add libsass-dev pcre gcc git libc-dev nim nimble
55

66
WORKDIR /src/nitter
77

88
COPY nitter.nimble .
99
RUN nimble install -y --depsOnly
1010

1111
COPY . .
12-
RUN nimble build -d:danger -d:lto -d:strip \
12+
RUN nimble build -d:danger -d:lto -d:strip --mm:refc \
1313
&& nimble scss \
1414
&& nimble md
1515

16-
FROM alpine:3.18
16+
FROM alpine:3.21.2
1717
WORKDIR /src/
18-
RUN apk --no-cache add pcre ca-certificates openssl1.1-compat
18+
RUN apk --no-cache add pcre ca-certificates openssl
1919
COPY --from=nim /src/nitter/nitter ./
2020
COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf
2121
COPY --from=nim /src/nitter/public ./public

0 commit comments

Comments
 (0)
Please sign in to comment.