-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
36 lines (27 loc) · 880 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
32
33
34
35
36
FROM alpine:3.6
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
# Install core packages
RUN apk add --no-cache \
ca-certificates \
coreutils \
tzdata && \
# Install build packages
apk add --no-cache --virtual=build-dependencies \
wget && \
# Create user
adduser -H -D -S -u 99 -G users -s /sbin/nologin duser && \
# Install runtime packages
apk add --no-cache \
python \
py-flask \
py-requests \
py-gevent && \
# Install tvhproxy
mkdir -p /opt/tvhproxy && \
wget -qO /opt/tvhproxy/tvhProxy.py "https://raw.githubusercontent.com/jkaberg/tvhProxy/master/tvhProxy.py" && \
# Cleanup
apk del --purge build-dependencies && \
rm -rf /var/cache/apk/* /tmp/* && \
# Set file permissions
chmod +x /docker-entrypoint.sh /opt/tvhproxy/tvhProxy.py
ENTRYPOINT ["/docker-entrypoint.sh"]