aboutsummaryrefslogtreecommitdiff
path: root/auto-dvd-ripper/Dockerfile
blob: 5994cb7e150b3f64698b14b2458a673938752a8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine:edge
LABEL maintainer="Mike Crute <mike@crute.us>"

COPY handbrake-1.0.7-r5.apk /tmp/

RUN \
    echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories; \
    apk --no-cache add su-exec dumb-init sg3_utils; \
    apk --no-cache --allow-untrusted add /tmp/handbrake-1.0.7-r5.apk; \
    addgroup -g 1000 -S alpine; \
    adduser -u 1000 -S -H -D -G alpine alpine; \
    addgroup alpine cdrom; \
    rm -rf /root/.cache /tmp/*;

ADD rip_dvd.sh /usr/bin/
ADD entrypoint.sh /

ENTRYPOINT ["/entrypoint.sh"]
CMD ["/sbin/su-exec", "alpine", "/usr/bin/rip_dvd.sh"]