Dockerfile 460 B

12345678910111213141516
  1. FROM archlinux/base
  2. RUN pacman -Sy --noconfirm shards crystal imagemagick librsvg \
  3. which pkgconf gcc ttf-liberation glibc
  4. # base-devel contains many other basic packages, that are normally assumed to already exist on a clean arch system
  5. ADD . /invidious
  6. WORKDIR /invidious
  7. RUN sed -i 's/host: localhost/host: postgres/' config/config.yml && \
  8. shards update && shards install && \
  9. crystal build src/invidious.cr
  10. CMD [ "/invidious/invidious" ]