Update Dockerfiles

This commit is contained in:
Zed
2025-02-05 04:24:35 +01:00
parent 6fcd849eff
commit 4d5091947c
3 changed files with 9 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
FROM alpine:3.18 as nim
FROM alpine:3.21.2 as nim
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
@@ -9,13 +9,13 @@ COPY nitter.nimble .
RUN nimble install -y --depsOnly
COPY . .
RUN nimble build -d:danger -d:lto -d:strip \
RUN nimble build -d:danger -d:lto -d:strip --mm:refc \
&& nimble scss \
&& nimble md
FROM alpine:3.18
FROM alpine:3.21.2
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.example.conf ./nitter.conf
COPY --from=nim /src/nitter/public ./public