mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
26 lines
1.4 KiB
Docker
26 lines
1.4 KiB
Docker
FROM elixir:1.13.1-alpine
|
|
|
|
RUN (echo "https://github.com/philomena-dev/prebuilt-ffmpeg/raw/master"; cat /etc/apk/repositories) > /tmp/repositories \
|
|
&& cp /tmp/repositories /etc/apk/repositories \
|
|
&& apk update --allow-untrusted \
|
|
&& apk add inotify-tools build-base git ffmpeg ffmpeg-dev npm nodejs file-dev libpng-dev gifsicle optipng libjpeg-turbo-utils librsvg imagemagick postgresql14-client wget rust cargo --allow-untrusted \
|
|
&& mix local.hex --force \
|
|
&& mix local.rebar --force
|
|
|
|
ADD https://api.github.com/repos/philomena-dev/cli_intensities/git/refs/heads/master /tmp/cli_intensities_version.json
|
|
RUN git clone --depth 1 https://github.com/philomena-dev/cli_intensities /tmp/cli_intensities \
|
|
&& cd /tmp/cli_intensities \
|
|
&& make -j$(nproc) install
|
|
|
|
ADD https://api.github.com/repos/philomena-dev/mediatools/git/refs/heads/master /tmp/mediatools_version.json
|
|
RUN git clone --depth 1 https://github.com/philomena-dev/mediatools /tmp/mediatools \
|
|
&& ln -s /usr/lib/librsvg-2.so.2 /usr/lib/librsvg-2.so \
|
|
&& cd /tmp/mediatools \
|
|
&& make -j$(nproc) install
|
|
|
|
COPY docker/app/run-development /usr/local/bin/run-development
|
|
COPY docker/app/run-test /usr/local/bin/run-test
|
|
COPY docker/app/safe-rsvg-convert /usr/local/bin/safe-rsvg-convert
|
|
COPY docker/app/purge-cache /usr/local/bin/purge-cache
|
|
ENV PATH=$PATH:/root/.cargo/bin
|
|
CMD run-development
|