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
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:
parent
b6753bf862
commit
fec37e8b76
12
Dockerfile
12
Dockerfile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user