mirror of
https://github.com/zedeus/nitter.git
synced 2025-03-04 01:51:12 +00:00
Update Dockerfiles
This commit is contained in:
parent
6fcd849eff
commit
4d5091947c
3 changed files with 9 additions and 9 deletions
4
.github/workflows/run-tests.yml
vendored
4
.github/workflows/run-tests.yml
vendored
|
@ -14,9 +14,9 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
nim:
|
nim:
|
||||||
- "1.6.10"
|
|
||||||
- "1.6.x"
|
- "1.6.x"
|
||||||
- "2.0.x"
|
- "2.0.x"
|
||||||
|
- "2.2.x"
|
||||||
- "devel"
|
- "devel"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -49,7 +49,7 @@ jobs:
|
||||||
sed -i 's/enableDebug = false/enableDebug = true/g' nitter.conf
|
sed -i 's/enableDebug = false/enableDebug = true/g' nitter.conf
|
||||||
nimble md
|
nimble md
|
||||||
nimble scss
|
nimble scss
|
||||||
echo '${{ secrets.GUEST_ACCOUNTS }}' > ./guest_accounts.jsonl
|
echo '${{ secrets.SESSIONS }}' > ./sessions.jsonl
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
./nitter &
|
./nitter &
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM nimlang/nim:2.0.0-alpine-regular as nim
|
FROM nimlang/nim:2.2.0-alpine-regular as nim
|
||||||
LABEL maintainer="setenforce@protonmail.com"
|
LABEL maintainer="setenforce@protonmail.com"
|
||||||
|
|
||||||
RUN apk --no-cache add libsass-dev pcre
|
RUN apk --no-cache add libsass-dev pcre
|
||||||
|
@ -9,7 +9,7 @@ COPY nitter.nimble .
|
||||||
RUN nimble install -y --depsOnly
|
RUN nimble install -y --depsOnly
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN nimble build -d:danger -d:lto -d:strip \
|
RUN nimble build -d:danger -d:lto -d:strip --mm:refc \
|
||||||
&& nimble scss \
|
&& nimble scss \
|
||||||
&& nimble md
|
&& nimble md
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
FROM alpine:3.18 as nim
|
FROM alpine:3.21.2 as nim
|
||||||
LABEL maintainer="setenforce@protonmail.com"
|
LABEL maintainer="setenforce@protonmail.com"
|
||||||
|
|
||||||
RUN apk --no-cache add libsass-dev pcre gcc git libc-dev "nim=1.6.14-r0" "nimble=0.13.1-r2"
|
RUN apk --no-cache add libsass-dev pcre gcc git libc-dev nim nimble
|
||||||
|
|
||||||
WORKDIR /src/nitter
|
WORKDIR /src/nitter
|
||||||
|
|
||||||
|
@ -9,13 +9,13 @@ COPY nitter.nimble .
|
||||||
RUN nimble install -y --depsOnly
|
RUN nimble install -y --depsOnly
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN nimble build -d:danger -d:lto -d:strip \
|
RUN nimble build -d:danger -d:lto -d:strip --mm:refc \
|
||||||
&& nimble scss \
|
&& nimble scss \
|
||||||
&& nimble md
|
&& nimble md
|
||||||
|
|
||||||
FROM alpine:3.18
|
FROM alpine:3.21.2
|
||||||
WORKDIR /src/
|
WORKDIR /src/
|
||||||
RUN apk --no-cache add pcre ca-certificates openssl1.1-compat
|
RUN apk --no-cache add pcre ca-certificates openssl
|
||||||
COPY --from=nim /src/nitter/nitter ./
|
COPY --from=nim /src/nitter/nitter ./
|
||||||
COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf
|
COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf
|
||||||
COPY --from=nim /src/nitter/public ./public
|
COPY --from=nim /src/nitter/public ./public
|
||||||
|
|
Loading…
Reference in a new issue