nitter/Dockerfile
Peter Dave Hello 739eb12bed
Set the tag of Docker base image: Redis to 6-alpine (#427)
Redis 6.0.4 is a little bit dated, there are some security
updates in the futures versions.

Set the image tag to 6-alpine, instead of 6.0.15-alpine or 6.2.5-alpine,
so that we don't need to manually follow the minor and patch versions
manually, will be more convenient.

(Could use with `--pull` parameter when building the image, so that
Docker will always check the latest 6-alpine)
2021-08-18 19:39:57 +02:00

19 lines
534 B
Docker

FROM nimlang/nim:alpine as nim
MAINTAINER setenforce@protonmail.com
EXPOSE 8080
RUN apk --no-cache add libsass-dev libffi-dev openssl-dev redis openssh-client
COPY . /src/nitter
WORKDIR /src/nitter
RUN nimble build -y -d:release --passC:"-flto" --passL:"-flto" \
&& strip -s nitter \
&& nimble scss
FROM redis:6-alpine
WORKDIR /src/
RUN apk --no-cache add pcre-dev sqlite-dev
COPY --from=nim /src/nitter/nitter /src/nitter/start.sh /src/nitter/nitter.conf ./
COPY --from=nim /src/nitter/public ./public
CMD ["./start.sh"]