ngn
fec37e8b76
All checks were successful
Build and publish the docker image / build (push) Successful in 8m57s
Signed-off-by: ngn <ngn@ngn.tf>
27 lines
485 B
Docker
27 lines
485 B
Docker
FROM nimlang/nim:2.0.0-alpine-regular as build
|
|
|
|
RUN apk --no-cache add libsass-dev pcre
|
|
|
|
WORKDIR /src
|
|
|
|
COPY nitter.nimble .
|
|
RUN nimble install -y --depsOnly
|
|
|
|
COPY . .
|
|
RUN nimble build -d:danger -d:lto -d:strip
|
|
RUN nimble scss
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk --no-cache add pcre ca-certificates
|
|
|
|
WORKDIR /srv
|
|
COPY --from=build /src/nitter ./
|
|
COPY --from=build /src/public ./public
|
|
|
|
RUN adduser -h /srv -D -s /bin/sh -u 1001 runner
|
|
RUN chown runner:runner -R /srv
|
|
|
|
USER runner
|
|
CMD ./nitter
|