-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_alpine
72 lines (65 loc) · 1.73 KB
/
Dockerfile_alpine
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
FROM alpine:3.11
LABEL maintainer "DI GREGORIO Nicolas <nicolas.digregorio@gmail.com>"
### Environment variables
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
APPUSER='couchpotato' \
APPUID='10009' \
APPGID='10009'
# Copy config files
COPY root/ /
### Install Application
RUN set -x && \
chmod 1777 /tmp && \
. /usr/local/bin/docker-entrypoint-functions.sh && \
MYUSER=${APPUSER} && \
MYUID=${APPUID} && \
MYGID=${APPGID} && \
ConfigureUser && \
apk --no-cache upgrade && \
apk add --no-cache --virtual=build-deps \
make \
gcc \
g++ \
libxml2-dev \
libxslt-dev \
python2-dev \
py2-pip \
openssl-dev \
libffi-dev \
&& \
apk add --no-cache --virtual=run-deps \
ca-certificates \
python2 \
libxml2 \
libxslt \
openssl \
unrar \
su-exec \
git \
bash \
&& \
pip --no-cache-dir install --upgrade setuptools && \
pip --no-cache-dir install --upgrade pyopenssl lxml && \
git clone --depth 1 https://github.com/CouchPotato/CouchPotatoServer/ /opt/couchpotato && \
apk del --no-cache --purge \
build-deps \
&& \
mkdir /docker-entrypoint.d && \
chmod +x /usr/local/bin/docker-entrypoint.sh && \
ln -snf /usr/local/bin/docker-entrypoint.sh /docker-entrypoint.sh && \
rm -rf /opt/couchpotato/.git* \
/tmp/* \
/var/cache/apk/* \
/var/tmp/*
### Volume
VOLUME ["/config", "/downloads", "/movies"]
### Expose ports
EXPOSE 5050
### Running User: not used, managed by docker-entrypoint.sh
#USER couchpotato
WORKDIR /opt/couchpotato
### Start CouchPotato
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["couchpotato"]