1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/editly/Dockerfile
2022-08-04 15:25:38 +08:00

32 lines
971 B
Docker

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