summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
blob: e2d434dbb8bc064fb5a7763e4a03f7110a47dd3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM archlinux/base

RUN pacman -Sy --noconfirm shards crystal imagemagick librsvg \
    which pkgconf gcc ttf-liberation
# base-devel contains many other basic packages, that are normally assumed to already exist on a clean arch system

ADD . /invidious

WORKDIR /invidious

RUN sed -i 's/host: localhost/host: postgres/' config/config.yml && \
    shards update && shards install && \
    crystal build src/invidious.cr

CMD [ "/invidious/invidious" ]