2021-07-21 05:59:05 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for editly
|
|
|
|
#
|
|
|
|
|
2021-11-19 05:37:41 +02:00
|
|
|
FROM node:lts-bullseye
|
2021-07-21 05:59:05 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
|
|
|
|
2022-08-04 09:25:38 +02:00
|
|
|
ARG EDITLY_VERSION=0.12.0
|
2022-08-04 09:08:35 +02:00
|
|
|
ARG FFMPEG_VERSION=5.0.1
|
|
|
|
|
2021-07-21 05:59:05 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& apt update \
|
2021-07-21 10:36:51 +02:00
|
|
|
&& apt install -y curl dumb-init fonts-noto-cjk xvfb xz-utils \
|
2022-08-04 09:25:38 +02:00
|
|
|
&& curl -sSL https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz \
|
2022-08-04 09:08:35 +02:00
|
|
|
| tar xJC /usr/bin/ ffmpeg-${FFMPEG_VERSION}-amd64-static/ffprobe ffmpeg-${FFMPEG_VERSION}-amd64-static/ffmpeg --strip 1 \
|
2021-07-21 10:36:51 +02:00
|
|
|
&& ffmpeg -version \
|
|
|
|
&& ffprobe -version \
|
2021-07-21 05:59:05 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2021-11-19 05:37:41 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& apt update \
|
|
|
|
&& apt install -y libxext-dev libxi-dev xserver-xorg-dev \
|
|
|
|
&& ln -sf /usr/bin/python3 /usr/bin/python \
|
2022-08-04 09:25:38 +02:00
|
|
|
&& npm install --global --unsafe-perm editly@${EDITLY_VERSION} \
|
2021-11-19 05:37:41 +02:00
|
|
|
&& apt remove -y libxext-dev libxi-dev xserver-xorg-dev \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2021-07-21 05:59:05 +02:00
|
|
|
|
|
|
|
WORKDIR /data
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--", "xvfb-run", "--server-args", "-screen 0 1280x1024x24 -ac", "editly"]
|
|
|
|
CMD ["--help"]
|