From f4c20a48a0eb9b615959ff692f80e5fc9f9052d3 Mon Sep 17 00:00:00 2001 From: Whizanth <107213432+Whizanth@users.noreply.github.com> Date: Sun, 26 Feb 2023 14:59:06 +0100 Subject: [PATCH] Add Dockerfile for arm64 (#762) --- Dockerfile.arm64 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile.arm64 diff --git a/Dockerfile.arm64 b/Dockerfile.arm64 new file mode 100644 index 0000000..899a430 --- /dev/null +++ b/Dockerfile.arm64 @@ -0,0 +1,23 @@ +FROM alpine:3.17 as nim +LABEL maintainer="setenforce@protonmail.com" + +RUN apk --no-cache add gcc git libc-dev libsass-dev "nim=1.6.8-r0" nimble pcre + +WORKDIR /src/nitter + +COPY nitter.nimble . +RUN nimble install -y --depsOnly + +COPY . . +RUN nimble build -d:danger -d:lto -d:strip \ + && nimble scss \ + && nimble md + +FROM alpine:3.17 +WORKDIR /src/ +RUN apk --no-cache add pcre ca-certificates +COPY --from=nim /src/nitter/nitter ./ +COPY --from=nim /src/nitter/nitter.example.conf ./nitter.conf +COPY --from=nim /src/nitter/public ./public +EXPOSE 8080 +CMD ./nitter