-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
31 lines (24 loc) · 870 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM jrottenberg/ffmpeg:3.3-alpine
MAINTAINER Simon Erhardt <[email protected]>
ARG VCS_REF
ARG BUILD_DATE
LABEL org.label-schema.name="FFProcess" \
org.label-schema.description="A small docker container including ffmpeg to batch convert your media library to a defined h264/aac profile." \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/chrootLogin/ffprocess"
ADD ffprocess.py /usr/local/bin/ffprocess.py
ADD requirements.txt /tmp/requirements.txt
RUN apk add --no-cache -U \
alpine-sdk \
bash \
python3 \
python3-dev \
tini \
&& pip3 install -r /tmp/requirements.txt \
&& rm -f /tmp/requirements.txt \
&& apk del \
alpine-sdk \
python3-dev
VOLUME /data
ENTRYPOINT ["/sbin/tini", "--", "python3", "/usr/local/bin/ffprocess.py", "/data"]