invidious/docker/Dockerfile

16 lines
454 B
Docker
Raw Normal View History

2018-09-26 13:16:08 +05:30
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 && \
2019-03-01 01:19:29 +05:30
shards update && shards install && \
2018-09-26 13:16:08 +05:30
crystal build src/invidious.cr
CMD [ "/invidious/invidious" ]