2024-08-14 03:12:08 +02:00
|
|
|
FROM elixir:1.17.2-alpine
|
2020-10-26 22:01:29 +01:00
|
|
|
|
2024-03-04 21:58:26 +01:00
|
|
|
ADD https://api.github.com/repos/philomena-dev/FFmpeg/git/refs/heads/release/6.1 /tmp/ffmpeg_version.json
|
2021-12-12 19:43:22 +01:00
|
|
|
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 \
|
2024-07-02 21:06:00 +02:00
|
|
|
&& apk add inotify-tools build-base git ffmpeg ffmpeg-dev npm nodejs file-dev libjpeg-turbo-dev libpng-dev gifsicle optipng libjpeg-turbo-utils librsvg rsvg-convert imagemagick postgresql16-client wget rust cargo --allow-untrusted \
|
2020-05-28 01:35:39 +02:00
|
|
|
&& mix local.hex --force \
|
|
|
|
&& mix local.rebar --force
|
|
|
|
|
2020-10-26 22:01:29 +01:00
|
|
|
ADD https://api.github.com/repos/philomena-dev/cli_intensities/git/refs/heads/master /tmp/cli_intensities_version.json
|
2021-12-12 18:09:35 +01:00
|
|
|
RUN git clone --depth 1 https://github.com/philomena-dev/cli_intensities /tmp/cli_intensities \
|
2020-05-28 01:35:39 +02:00
|
|
|
&& cd /tmp/cli_intensities \
|
2021-04-16 04:35:17 +02:00
|
|
|
&& make -j$(nproc) install
|
2020-05-19 04:44:43 +02:00
|
|
|
|
2020-10-26 22:01:29 +01:00
|
|
|
ADD https://api.github.com/repos/philomena-dev/mediatools/git/refs/heads/master /tmp/mediatools_version.json
|
2021-12-12 18:09:35 +01:00
|
|
|
RUN git clone --depth 1 https://github.com/philomena-dev/mediatools /tmp/mediatools \
|
2021-10-24 03:55:32 +02:00
|
|
|
&& ln -s /usr/lib/librsvg-2.so.2 /usr/lib/librsvg-2.so \
|
2020-05-28 01:35:39 +02:00
|
|
|
&& cd /tmp/mediatools \
|
2021-04-16 04:35:17 +02:00
|
|
|
&& make -j$(nproc) install
|
2019-12-03 19:36:50 +01:00
|
|
|
|
|
|
|
COPY docker/app/run-development /usr/local/bin/run-development
|
2020-10-26 22:01:29 +01:00
|
|
|
COPY docker/app/run-test /usr/local/bin/run-test
|
2019-12-03 19:36:50 +01:00
|
|
|
COPY docker/app/safe-rsvg-convert /usr/local/bin/safe-rsvg-convert
|
2020-12-16 16:53:26 +01:00
|
|
|
COPY docker/app/purge-cache /usr/local/bin/purge-cache
|
2021-09-11 02:37:13 +02:00
|
|
|
ENV PATH=$PATH:/root/.cargo/bin
|
2024-04-30 19:13:46 +02:00
|
|
|
EXPOSE 5173
|
2020-03-09 23:21:18 +01:00
|
|
|
CMD run-development
|