switch to alpine for the runner bc of lib issues
All checks were successful
Build and publish the docker image / build (push) Successful in 8m57s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-01-21 07:07:53 +03:00
parent b6753bf862
commit fec37e8b76
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D

View File

@ -11,18 +11,16 @@ COPY . .
RUN nimble build -d:danger -d:lto -d:strip
RUN nimble scss
FROM debian:unstable-slim as main
FROM alpine:latest
RUN apt update
RUN apt install -y ca-certificates
RUN useradd -d /src -u 1001 nitter
RUN apk --no-cache add pcre ca-certificates
WORKDIR /srv
COPY --from=build /src/nitter ./
COPY --from=build /src/public ./public
RUN chown nitter:nitter -R /srv
RUN adduser -h /srv -D -s /bin/sh -u 1001 runner
RUN chown runner:runner -R /srv
USER nitter
USER runner
CMD ./nitter