basic docker-compose cluster

This commit is contained in:
flourgaz
2018-09-26 09:46:08 +02:00
parent 29a6291957
commit 71a99542fe
5 changed files with 67 additions and 1 deletions

15
docker/Dockerfile Normal file
View File

@@ -0,0 +1,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 && \
crystal build src/invidious.cr
CMD [ "/invidious/invidious" ]