forked from chvb/Docker-Tvhproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (32 loc) · 961 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
37
38
39
40
41
42
43
FROM alpine:3.6
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
# Install core packages
RUN apk add --no-cache \
ca-certificates \
coreutils \
tzdata \
git \
openssh && \
# 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-pip \
py-flask \
py-requests \
py-gevent && \
# Install tvhproxy
mkdir -p /opt/tvhproxy && \
git clone git://github.com/christoefar/tvhProxy.git /opt/tvhproxy && \
# Cleanup
apk del --purge build-dependencies && \
rm -rf /var/cache/apk/* /tmp/* && \
# Set file permissions
chmod +x /docker-entrypoint.sh /opt/tvhproxy/tvhProxy.py
RUN pip install -r /opt/tvhproxy/requirements.txt
ENTRYPOINT ["/docker-entrypoint.sh"]
EXPOSE 5004/tcp