nitter/Dockerfile

26 lines
446 B
Docker
Raw Normal View History

FROM nimlang/nim:2.0.0-alpine-regular as build
2019-10-10 13:55:16 -04:00
2022-01-09 23:14:01 +01:00
RUN apk --no-cache add libsass-dev pcre
WORKDIR /src
2019-10-10 13:55:16 -04:00
2022-01-26 23:50:29 -05:00
COPY nitter.nimble .
RUN nimble install -y --depsOnly
2022-01-26 23:50:29 -05:00
COPY . .
RUN nimble build -d:danger -d:lto -d:strip
RUN nimble scss
2019-10-10 13:55:16 -04:00
FROM debian:unstable-slim
RUN apk --no-cache add pcre ca-certificates
RUN useradd -d /src -u 1001 nitter
WORKDIR /srv
COPY --from=build /src/nitter ./
COPY --from=build /src/public ./public
USER nitter
2020-10-01 03:41:47 +00:00
CMD ./nitter